summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-02 13:12:57 +0200
committerVolker Lendecke <vl@samba.org>2009-05-02 13:14:14 +0200
commit4b3e89c2e7f5e36edd436fccefb852a616ef2110 (patch)
tree7dc2db33832af714fe97a8d01c9b123a65f237d8 /source4/smbd
parent60d77096cb5d4ebfb756963deb0c25b1f046a61a (diff)
downloadsamba-4b3e89c2e7f5e36edd436fccefb852a616ef2110.tar.gz
samba-4b3e89c2e7f5e36edd436fccefb852a616ef2110.tar.bz2
samba-4b3e89c2e7f5e36edd436fccefb852a616ef2110.zip
Fix Coverity 911: FORWARD_NULL. Metze, please check!
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/service_stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/smbd/service_stream.c b/source4/smbd/service_stream.c
index e09ac1d9e6..4d36d78695 100644
--- a/source4/smbd/service_stream.c
+++ b/source4/smbd/service_stream.c
@@ -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;
}