Commit cf9e809b authored by Pekka Pessi's avatar Pekka Pessi

sdp_parse.c: check nettype correctly

MeeGo Coverity issue CID#7812
parent c8b2216e
......@@ -819,12 +819,12 @@ static void parse_connection(sdp_parser_t *p, char *r, sdp_connection_t **result
*result = c;
if (su_casenmatch(r, "IN", 2)) {
if (su_casenmatch(r, "IN", 2) && (r[2] == ' ' || r[2] == '\t')) {
char *s;
/* nettype is internet */
token(&r, SPACE TAB, NULL, NULL);
c->c_nettype = sdp_net_in;
s = token(&r, SPACE TAB, NULL, NULL);
/* addrtype */
s = token(&r, SPACE TAB, NULL, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment