diff options
author | Anoop C S <anoopcs@redhat.com> | 2016-10-25 15:56:20 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2016-10-25 16:03:43 +0200 |
commit | 85c2d663ec4dc7dc0170df676721e9a63f18fe40 (patch) | |
tree | 95e25d21c30d6177d5c232ca29006b27f99f3c2d /src | |
parent | 9ce583b6cd6f55d473e5b54794fb06450997ebc8 (diff) | |
download | socket_wrapper-85c2d663ec4dc7dc0170df676721e9a63f18fe40.tar.gz socket_wrapper-85c2d663ec4dc7dc0170df676721e9a63f18fe40.tar.xz socket_wrapper-85c2d663ec4dc7dc0170df676721e9a63f18fe40.zip |
swrap: fix SWRAP_DLIST_ADD_AFTER
Pair-Programmed-With: Michael Adam <obnox@samba.org>
Signed-off-by: Anoop C S <anoopcs@redhat.com>
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/socket_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); \ |