libcli/auth: Fix an uninitialized variable
authorVolker Lendecke <vl@samba.org>
Sun, 11 Apr 2010 20:56:09 +0000 (22:56 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 11 Apr 2010 20:57:25 +0000 (22:57 +0200)
value.dptr was used uninitialized in the "goto done;"

libcli/auth/schannel_state_tdb.c

index c1557e8a288f0937cb0541e7b67f4a7c91d16280..3f6618c744c1d01180a467293ab9354d01bc19b6 100644 (file)
@@ -184,8 +184,7 @@ NTSTATUS schannel_fetch_session_key_tdb(struct tdb_wrap *tdb_sc,
                                 SECRETS_SCHANNEL_STATE, name_upper);
        TALLOC_FREE(name_upper);
        if (!keystr) {
-               status = NT_STATUS_NO_MEMORY;
-               goto done;
+               return NT_STATUS_NO_MEMORY;
        }
 
        value = tdb_fetch_bystring(tdb_sc->tdb, keystr);