Skip to content

Commit

Permalink
avp: check for null string
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Apr 14, 2021
1 parent 6c8d618 commit c30cd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/avp/avp.c
Expand Up @@ -1359,7 +1359,7 @@ static int attr_hdr_body2attrs(struct sip_msg* m, char* header_, char* prefix_)
}
};
}
if (s.len && s.s[0] == header->field_delimiter) {
if (s.len && s.s && s.s[0] == header->field_delimiter) {
s.s++;
s.len--;
}
Expand Down

0 comments on commit c30cd3d

Please sign in to comment.