Browse code

core: jump to error in case of unexpected comma for parse addr spec

(cherry picked from commit 932e46b09176544cf6e085a32677980b26e4d2eb)

Daniel-Constantin Mierla authored on 24/09/2021 12:43:40
Showing 1 changed files
... ...
@@ -494,6 +494,7 @@ static char *parse_to_param(char *const buffer, const char *const end,
494 494
 					}
495 495
 					LM_ERR("invalid character ',' in status %d: [%.*s]\n",
496 496
 							status, (int)(tmp - buffer), ZSW(buffer));
497
+					goto error;
497 498
 				}
498 499
 			default:
499 500
 				switch(status) {