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:
184a48d
)
s3:libads: Fix building with FORTIFY_SOURCE=2
author
Joseph Sutton
<josephsutton@catalyst.net.nz>
Thu, 28 Sep 2023 03:39:47 +0000
(16:39 +1300)
committer
Joseph Sutton
<jsutton@samba.org>
Sun, 1 Oct 2023 22:45:38 +0000
(22:45 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libads/ldap.c
patch
|
blob
|
history
diff --git
a/source3/libads/ldap.c
b/source3/libads/ldap.c
index a639cd23dc429537e5c0067c420da3b79eda2a0b..740bc6bb43458ff068c5e5584e75ae8aae8c11c0 100644
(file)
--- a/
source3/libads/ldap.c
+++ b/
source3/libads/ldap.c
@@
-3156,7
+3156,7
@@
int ads_count_replies(ADS_STRUCT *ads, void *res)
bool *more_strings)
{
char *attr;
- char *expected_range_attrib, *range_attr;
+ char *expected_range_attrib, *range_attr
= NULL
;
BerElement *ptr = NULL;
char **strings;
char **new_strings;
@@
-3187,7
+3187,7
@@
int ads_count_replies(ADS_STRUCT *ads, void *res)
}
ldap_memfree(attr);
}
- if (!attr) {
+ if (!
range_
attr) {
ber_free(ptr, 0);
/* nothing here - this field is just empty */
*more_strings = False;