git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c37ed2
)
libgpo: Make sure status is intialized
author
Andreas Schneider
<asn@samba.org>
Mon, 12 Nov 2018 09:16:06 +0000
(10:16 +0100)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 14 Nov 2018 04:07:15 +0000
(
05:07
+0100)
Found by cppcheck.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13680
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libgpo/gpo_ldap.c
patch
|
blob
|
history
diff --git
a/libgpo/gpo_ldap.c
b/libgpo/gpo_ldap.c
index fec00053b4984a29fc0c085811b2817e1e087fb4..f087203f28aa1153691e86e0f20415d6b6b7dde3 100644
(file)
--- a/
libgpo/gpo_ldap.c
+++ b/
libgpo/gpo_ldap.c
@@
-474,7
+474,7
@@
ADS_STATUS ads_get_gpo(ADS_STRUCT *ads,
const char *guid_name,
struct GROUP_POLICY_OBJECT *gpo)
{
- ADS_STATUS status;
+ ADS_STATUS status
= ADS_ERROR(LDAP_NO_SUCH_OBJECT)
;
LDAPMessage *res = NULL;
char *dn;
const char *filter;