From 55380807f852d5ad1da650178150802744d25fd0 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 8 Feb 2013 11:34:24 -0500 Subject: [PATCH] tags can be NULL --- daemon/call.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index 742359716..8e471df35 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -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;