lib: Fix a false/NULL hickup
authorVolker Lendecke <vl@samba.org>
Mon, 13 Nov 2017 15:21:31 +0000 (16:21 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 17 Nov 2017 23:09:16 +0000 (00:09 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/util_net.c

index d52d401e4c7bffe0e50218df960f7c03bc596b01..57db4fae4d81593a3ece0448a39575f4980d17f7 100644 (file)
@@ -53,7 +53,7 @@ static char *normalize_ipv6_literal(const char *str, char *buf, size_t *_len)
        size_t cnt_chars = 0;
 
        if (len <= llen) {
        size_t cnt_chars = 0;
 
        if (len <= llen) {
-               return false;
+               return NULL;
        }
 
        /* ignore a trailing '.' */
        }
 
        /* ignore a trailing '.' */