git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
97190ae
)
s3-netapi: Fix Coverity #776 (REVERSE_INULL).
author
Günther Deschner
<gd@samba.org>
Fri, 20 Mar 2009 10:17:50 +0000
(11:17 +0100)
committer
Günther Deschner
<gd@samba.org>
Fri, 20 Mar 2009 10:17:50 +0000
(11:17 +0100)
Guenther
source3/lib/netapi/group.c
patch
|
blob
|
history
diff --git
a/source3/lib/netapi/group.c
b/source3/lib/netapi/group.c
index 189902a78eda535a6629e4272f2f7e3ab3a26788..c09632a8570b08c925e5e506d0e850ecd3b7b82d 100644
(file)
--- a/
source3/lib/netapi/group.c
+++ b/
source3/lib/netapi/group.c
@@
-1276,6
+1276,7
@@
WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx,
*r->out.buffer = NULL;
*r->out.entries_read = 0;
+ *r->out.total_entries = 0;
switch (r->in.level) {
case 0:
@@
-1364,13
+1365,8
@@
WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx,
}
}
- if (r->out.entries_read) {
- *r->out.entries_read = entries_read;
- }
-
- if (r->out.total_entries) {
- *r->out.total_entries = entries_read;
- }
+ *r->out.entries_read = entries_read;
+ *r->out.total_entries = entries_read;
werr = WERR_OK;