Fix Coverity 911: FORWARD_NULL. Metze, please check!
authorVolker Lendecke <vl@samba.org>
Sat, 2 May 2009 11:12:57 +0000 (13:12 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 2 May 2009 11:14:14 +0000 (13:14 +0200)
source4/smbd/service_stream.c

index e09ac1d9e6a7e185295dae60e406d38c1fcc7182..4d36d78695a4554490eb66833f2e3cd1dfcc61a1 100644 (file)
@@ -328,7 +328,8 @@ NTSTATUS stream_setup_socket(struct tevent_context *event_context,
 
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(0,("Failed to listen on %s:%u - %s\n",
-                       sock_addr, *port, nt_errstr(status)));
+                        sock_addr, port ? (unsigned int)(*port) : 0,
+                        nt_errstr(status)));
                talloc_free(stream_socket);
                return status;
        }