Module: kamailio Branch: master Commit: 0fbcca38574139f1cd8ba7506ee5e204be5f2da7 URL: https://github.com/kamailio/kamailio/commit/0fbcca38574139f1cd8ba7506ee5e204be5f2da7
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2015-11-05T08:59:23+01:00 core: clist - restet prev/next when removing from clist slot --- Modified: clist.h --- Diff: https://github.com/kamailio/kamailio/commit/0fbcca38574139f1cd8ba7506ee5e204be5f2da7.diff Patch: https://github.com/kamailio/kamailio/commit/0fbcca38574139f1cd8ba7506ee5e204be5f2da7.patch --- diff --git a/clist.h b/clist.h index 2f1f8b5..2b796e6 100644 --- a/clist.h +++ b/clist.h @@ -87,7 +87,9 @@ #define clist_rm_sublist(s, e, next, prev) \ do{\ (s)->prev->next=(e)->next; \ - (e)->next->prev=(s)->prev ; \ + (e)->next->prev=(s)->prev; \ + (s)->prev=NULL; \ + (e)->next=NULL; \ }while(0) _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
