]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r17901: Stanford checker fix. cookie here can't be null or we'd
authorJeremy Allison <jra@samba.org>
Tue, 29 Aug 2006 01:04:25 +0000 (01:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:38:58 +0000 (11:38 -0500)
deref null. Make interface explicit.
Jeremy.
(This used to be commit 4e99606ec16b978a76219b5362a23a7b06ee5468)

source3/libads/ldap.c

index 402e37b3c0517eb0d048a57e912e3d72ebade6fb..c6d1fc9c6039cf5d7a9d62211dd33d9fb01837c9 100644 (file)
@@ -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;