Fix uninitialized variables.
authorJeremy Allison <jra@samba.org>
Wed, 30 Jul 2008 23:06:30 +0000 (16:06 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 30 Jul 2008 23:06:30 +0000 (16:06 -0700)
Jeremy.
(This used to be commit 1db7e00a5400863fd5dbb81c1a4c6ea6092d0495)

source3/lib/netapi/cm.c
source3/libads/kerberos_keytab.c

index 8eaabb3cda25827b82c461cdfdf5a3ce99765fc8..8ea31e54f958d760a9f4aa76fbd91aaa83491a64 100644 (file)
@@ -165,7 +165,7 @@ WERROR libnetapi_open_pipe(struct libnetapi_ctx *ctx,
                           const struct ndr_syntax_id *interface,
                           struct rpc_pipe_client **presult)
 {
-       struct rpc_pipe_client *result;
+       struct rpc_pipe_client *result = NULL;
        NTSTATUS status;
 
        if (!cli || !presult) {
index 87b85550c5dbc0cc9f75d70c146ffaad3b5763ef..77a50e42215906363935d8cbbc6f4a99bf4b33b3 100644 (file)
@@ -276,6 +276,7 @@ int ads_keytab_add_entry(ADS_STRUCT *ads, const char *srvPrinc)
                ret = -1;
                goto out;
        }
+       ZERO_STRUCT(password);
        password.data = password_s;
        password.length = strlen(password_s);