]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
nmbd: Fix CID 1474439: Incorrect expression
authorVolker Lendecke <vl@samba.org>
Tue, 23 Mar 2021 10:58:19 +0000 (11:58 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 24 Mar 2021 20:31:30 +0000 (20:31 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/nmbd/nmbd_subnetdb.c

index 38c6db69b3db97e7bbdf311ed9df3c5f5d88ccf3..aefe1d4be397da24137d4b90d0c012717be49cc6 100644 (file)
@@ -155,7 +155,7 @@ static struct subnet_record *make_subnet(const char *name, enum subnet_type type
                                        "interface %s for port %d: %s\n",
                                        inet_ntoa(myip),
                                        DGRAM_PORT,
-                                       strerror(-dgram_sock));
+                                       strerror(-dgram_bcast));
                                goto failed;
                        }
                        set_socket_options(dgram_bcast, "SO_BROADCAST");