diff options
author | Volker Lendecke <vl@samba.org> | 2012-06-29 12:37:40 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-07-03 13:39:42 +0200 |
commit | 6710e4edc5d44894ba022a9f6dff4a2acaf24d07 (patch) | |
tree | 5165d86530f8dc03da1596f7bb3ceb769cb16b48 | |
parent | 3e6d8acc9b48ef4de1df08d3103313f27fa41032 (diff) | |
download | samba-6710e4edc5d44894ba022a9f6dff4a2acaf24d07.tar.gz samba-6710e4edc5d44894ba022a9f6dff4a2acaf24d07.tar.bz2 samba-6710e4edc5d44894ba022a9f6dff4a2acaf24d07.zip |
s3: Fix Coverity ID 709218 Uninitialized pointer read
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | source3/smbd/conn_idle.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/conn_idle.c b/source3/smbd/conn_idle.c index 23dcc8988a..60263667c1 100644 --- a/source3/smbd/conn_idle.c +++ b/source3/smbd/conn_idle.c @@ -105,6 +105,11 @@ void conn_force_tdis(struct smbd_server_connection *sconn, const char *sharename next = conn->next; + if (conn->tcon == NULL) { + continue; + } + tcon = conn->tcon; + if (close_all) { do_close = true; } else if (strequal(lp_servicename(SNUM(conn)), sharename)) { |