From 85c2d663ec4dc7dc0170df676721e9a63f18fe40 Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Tue, 25 Oct 2016 15:56:20 +0200 Subject: swrap: fix SWRAP_DLIST_ADD_AFTER Pair-Programmed-With: Michael Adam Signed-off-by: Anoop C S Signed-off-by: Michael Adam Reviewed-by: Andreas Schneider --- src/socket_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/socket_wrapper.c') diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 40e2f04..d40f8b6 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -211,7 +211,7 @@ enum swrap_dbglvl_e { #define SWRAP_DLIST_ADD_AFTER(list, item, el) \ do { \ - if ((list) != NULL || (el) != NULL) { \ + if ((list) == NULL || (el) == NULL) { \ SWRAP_DLIST_ADD(list, item); \ } else { \ (item)->prev = (el); \ -- cgit