From a89b1858ae4145e37311dc27e06f13a72e3f14ea Mon Sep 17 00:00:00 2001 From: Richard Aas Date: Fri, 9 Dec 2011 12:45:40 +0000 Subject: [PATCH] handle ID strdup errors gracefully --- src/sipevent/listen.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/sipevent/listen.c b/src/sipevent/listen.c index 0efae54..1c498a5 100644 --- a/src/sipevent/listen.c +++ b/src/sipevent/listen.c @@ -187,11 +187,7 @@ static void notify_handler(struct sipevent_sock *sock, if (sub->refer_cseq >= 0 && !sub->id && pl_isset(&event.id)) { - err = pl_strdup(&sub->id, &event.id); - if (err) { - (void)sip_treply(NULL, sip, msg, 500, strerror(err)); - return; - } + (void)pl_strdup(&sub->id, &event.id); } re_printf("notify: %s (%r)\n", sipevent_substate_name(state.state),