s3: Fix Coverity ID 242723 Uninitialized scalar variable
authorVolker Lendecke <vl@samba.org>
Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 10 May 2012 07:11:57 +0000 (09:11 +0200)
In an error path we are closing hnd without opening it

source3/rpcclient/cmd_spoolss.c

index 2394e22c55d8eaaf40515d1691a1f743e8c93608..b189fd7379ec6ac12c4af27e8ac0fba6d0638c16 100644 (file)
@@ -3196,7 +3196,7 @@ static WERROR cmd_spoolss_rffpcnex(struct rpc_pipe_client *cli,
 {
        const char *printername;
        const char *clientname;
-       struct policy_handle hnd;
+       struct policy_handle hnd = { 0, };
        WERROR result;
        NTSTATUS status;
        struct spoolss_NotifyOption option;