diff options
author | Andreas Schneider <asn@samba.org> | 2012-12-18 16:06:19 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2012-12-21 13:56:01 +0100 |
commit | f7d8aa79ff508dec519c493fcdcaa908cdc86670 (patch) | |
tree | ffcd0b574cd6ac72af9a240a588ed8c7d1012a81 /source3 | |
parent | fd6041a22065613de6746d0058ac1ae42b84b3b7 (diff) | |
download | samba-f7d8aa79ff508dec519c493fcdcaa908cdc86670.tar.gz samba-f7d8aa79ff508dec519c493fcdcaa908cdc86670.tar.xz samba-f7d8aa79ff508dec519c493fcdcaa908cdc86670.zip |
s3-libsmb: Fix a possible null pointer dereference.
Found by Coverity.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/libsmb_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c index 99aa74c67b9..858622f5656 100644 --- a/source3/libsmb/libsmb_server.c +++ b/source3/libsmb/libsmb_server.c @@ -273,7 +273,7 @@ SMBC_server_internal(TALLOC_CTX *ctx, * server... */ if (srv && - *share != '\0' && + share != NULL && *share != '\0' && smbc_getOptionOneSharePerServer(context)) { /* |