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 (parent:
f2243e8
)
s3-netapi: Fix Coverity #774 (REVERSE_INULL).
author
Günther Deschner
<gd@samba.org>
Fri, 20 Mar 2009 10:21:36 +0000
(11:21 +0100)
committer
Günther Deschner
<gd@samba.org>
Fri, 20 Mar 2009 10:21:36 +0000
(11:21 +0100)
Guenther
source3/lib/netapi/user.c
patch
|
blob
|
history
diff --git
a/source3/lib/netapi/user.c
b/source3/lib/netapi/user.c
index b1bd27af2a593f5842940a56023d811fcec06be7..e760a8b1de58f2be84fe1a7b42f1bd7951d4bf6f 100644
(file)
--- a/
source3/lib/netapi/user.c
+++ b/
source3/lib/netapi/user.c
@@
-2806,6
+2806,7
@@
WERROR NetUserGetGroups_r(struct libnetapi_ctx *ctx,
*r->out.buffer = NULL;
*r->out.entries_read = 0;
*r->out.buffer = NULL;
*r->out.entries_read = 0;
+ *r->out.total_entries = 0;
switch (r->in.level) {
case 0:
switch (r->in.level) {
case 0:
@@
-2899,12
+2900,8
@@
WERROR NetUserGetGroups_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;
done:
if (ctx->disable_policy_handle_cache) {
done:
if (ctx->disable_policy_handle_cache) {