osip_via.c (libosip2-5.2.0) | : | osip_via.c (libosip2-5.2.1) | ||
---|---|---|---|---|
skipping to change at line 172 | skipping to change at line 172 | |||
/* Here: we avoid matching an additionnal space */ | /* Here: we avoid matching an additionnal space */ | |||
host = strchr(protocol + 1, ' '); | host = strchr(protocol + 1, ' '); | |||
if (host == NULL) | if (host == NULL) | |||
return OSIP_SYNTAXERROR; /* fixed in 0.8.4 */ | return OSIP_SYNTAXERROR; /* fixed in 0.8.4 */ | |||
if (host == protocol + 1) { /* there are extra SPACE characters */ | if (host == protocol + 1) { /* there are extra SPACE characters */ | |||
while (0 == strncmp(host, " ", 1)) { | while (0 == strncmp(host, " ", 1)) { | |||
host++; | host++; | |||
if (strlen(host) == 1) | if (strlen(host) <= 1) | |||
return OSIP_SYNTAXERROR; /* via is malformed */ | return OSIP_SYNTAXERROR; /* via is malformed */ | |||
} | } | |||
/* here, we match the real space located after the protocol name */ | /* here, we match the real space located after the protocol name */ | |||
host = strchr(host + 1, ' '); | host = strchr(host + 1, ' '); | |||
if (host == NULL) | if (host == NULL) | |||
return OSIP_SYNTAXERROR; /* fixed in 0.8.4 */ | return OSIP_SYNTAXERROR; /* fixed in 0.8.4 */ | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |