[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-438-g77afcad

Volker Lendecke vlendec at samba.org
Fri Sep 18 12:21:52 MDT 2009


The branch, master has been updated
       via  77afcad8f09b50977f4b88b68d66ebd61b7ffa82 (commit)
      from  30a4695b273613f8a62cf195a3764a923820f131 (commit)

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


- Log -----------------------------------------------------------------
commit 77afcad8f09b50977f4b88b68d66ebd61b7ffa82
Author: Volker Lendecke <vl at samba.org>
Date:   Fri Sep 18 20:20:07 2009 +0200

    s3: Fix Coverity ID 581 -- NEGATIVE_RETURNS

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

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


Changeset truncated at 500 lines:

diff --git a/source3/lib/dprintf.c b/source3/lib/dprintf.c
index 631c45a..835d340 100644
--- a/source3/lib/dprintf.c
+++ b/source3/lib/dprintf.c
@@ -66,6 +66,10 @@ again:
 	}
 
 	clen = convert_string(CH_UNIX, CH_DISPLAY, p, ret, p2, maxlen, True);
+	if (clen == -1) {
+		ret = -1;
+		goto out;
+	}
 
 	if (clen >= maxlen) {
 		/* it didn't fit - try a larger buffer */


-- 
Samba Shared Repository


More information about the samba-cvs mailing list