[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-417-g810b670

Volker Lendecke vlendec at samba.org
Tue Feb 3 09:22:57 GMT 2009


The branch, master has been updated
       via  810b670b754f1f1f547c94c1b9bcff40154e7bb2 (commit)
      from  553818add80818909268557665e2760a16f2d8a0 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 810b670b754f1f1f547c94c1b9bcff40154e7bb2
Author: Volker Lendecke <vl at samba.org>
Date:   Tue Feb 3 10:21:51 2009 +0100

    Fix Coverity ID 870

-----------------------------------------------------------------------

Summary of changes:
 source3/libsmb/cliconnect.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 60b1a60..a39e035 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);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list