summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-08-29 01:04:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:58 -0500
commit9f0c2827a4e08cb386453d1ce740f4b559b557fd (patch)
tree383ec15516c0a48f3c7d491c2569606a9584a29f
parenta08ca7a0a00df371601e14099bfdba46de81b74d (diff)
downloadsamba-9f0c2827a4e08cb386453d1ce740f4b559b557fd.tar.gz
samba-9f0c2827a4e08cb386453d1ce740f4b559b557fd.tar.bz2
samba-9f0c2827a4e08cb386453d1ce740f4b559b557fd.zip
r17901: Stanford checker fix. cookie here can't be null or we'd
deref null. Make interface explicit. Jeremy. (This used to be commit 4e99606ec16b978a76219b5362a23a7b06ee5468)
-rw-r--r--source3/libads/ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 402e37b3c0..c6d1fc9c60 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -506,7 +506,7 @@ ADS_STATUS ads_do_paged_search_args(ADS_STRUCT *ads, const char *bind_path,
}
cookie_be = ber_alloc_t(LBER_USE_DER);
- if (cookie && *cookie) {
+ if (*cookie) {
ber_printf(cookie_be, "{iO}", (ber_int_t) 1000, *cookie);
ber_bvfree(*cookie); /* don't need it from last time */
*cookie = NULL;