revert previous patch

This commit is contained in:
Richard Aas 2011-12-09 13:22:42 +00:00
parent a89b1858ae
commit 1e09dea0b1

View file

@ -187,7 +187,11 @@ static void notify_handler(struct sipevent_sock *sock,
if (sub->refer_cseq >= 0 && !sub->id && pl_isset(&event.id)) {
(void)pl_strdup(&sub->id, &event.id);
err = pl_strdup(&sub->id, &event.id);
if (err) {
(void)sip_treply(NULL, sip, msg, 500, strerror(err));
return;
}
}
re_printf("notify: %s (%r)\n", sipevent_substate_name(state.state),