tags can be NULL

git.mgm/mediaproxy-ng/2.2
Richard Fuchs 13 years ago
parent bf4df4dff9
commit 55380807f8

@ -1856,11 +1856,11 @@ str *call_lookup_tcp(char **out, struct callmaster *m) {
}
static int tags_match(const struct peer *p, const struct peer *px, const str *fromtag, const str *totag) {
if (!fromtag->len)
if (!fromtag || !fromtag->len)
return 1;
if (str_cmp_str(&p->tag, fromtag))
return 0;
if (!totag->len)
if (!totag || !totag->len)
return 1;
if (str_cmp_str(&px->tag, totag))
return 0;

Loading…
Cancel
Save