r14212: Definately fixes a coverity issue but I've lost track
authorJeremy Allison <jra@samba.org>
Sat, 11 Mar 2006 20:23:50 +0000 (20:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:16 +0000 (11:15 -0500)
of the coverity id.... Oh well - definately needs a fix.
Jeremy.

source/libmsrpc/cac_lsarpc.c

index 13aaa017548202d7acfcbcf631e4a4678cdf5b8a..83d147c0254e3a008eae740347f85ce7b9950c98 100644 (file)
@@ -481,7 +481,7 @@ int cac_LsaQueryInfoPolicy(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct Lsa
       return CAC_FAILURE;
    }
 
-   if(!op->in.pol) {
+   if(!op || !op->in.pol) {
       hnd->status = NT_STATUS_INVALID_PARAMETER;
       return CAC_FAILURE;
    }