git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30a4695
)
s3: Fix Coverity ID 581 -- NEGATIVE_RETURNS
author
Volker Lendecke
<vl@samba.org>
Fri, 18 Sep 2009 18:20:07 +0000
(20:20 +0200)
committer
Volker Lendecke
<vl@samba.org>
Fri, 18 Sep 2009 18:20:39 +0000
(20:20 +0200)
source3/lib/dprintf.c
patch
|
blob
|
history
diff --git
a/source3/lib/dprintf.c
b/source3/lib/dprintf.c
index 631c45a8078890be0cecdf95445f8d256296515e..835d34076e5f2fea2af0ccd7e5cb655cb7b05464 100644
(file)
--- 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 */