summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-03 10:21:51 +0100
committerVolker Lendecke <vl@samba.org>2009-02-03 10:22:36 +0100
commit810b670b754f1f1f547c94c1b9bcff40154e7bb2 (patch)
tree2fb142279e6cef2a8c154ecb75ac6fd6ba01ad42
parent553818add80818909268557665e2760a16f2d8a0 (diff)
downloadsamba-810b670b754f1f1f547c94c1b9bcff40154e7bb2.tar.gz
samba-810b670b754f1f1f547c94c1b9bcff40154e7bb2.tar.bz2
samba-810b670b754f1f1f547c94c1b9bcff40154e7bb2.zip
Fix Coverity ID 870
-rw-r--r--source3/libsmb/cliconnect.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 60b1a6027c..a39e035d2a 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1229,6 +1229,10 @@ struct async_req *cli_tcon_andx_send(TALLOC_CTX *mem_ctx,
*/
passlen = clistr_push(cli, pword, pass, sizeof(pword),
STR_TERMINATE);
+ if (passlen == -1) {
+ DEBUG(1, ("clistr_push(pword) failed\n"));
+ goto access_denied;
+ }
} else {
if (passlen) {
memcpy(pword, pass, passlen);