s3-lsa: fix some uninitialized variables in our lsa server.
authorGünther Deschner <gd@samba.org>
Mon, 21 Feb 2011 16:35:45 +0000 (17:35 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 21 Feb 2011 17:47:30 +0000 (18:47 +0100)
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb 21 18:47:30 CET 2011 on sn-devel-104

source3/rpc_server/lsa/srv_lsa_nt.c

index 02cdc215844f953873c72195960b0b2f4312fa54..697b287a0f800034b81b9f65faebe7a42393f830 100644 (file)
@@ -1548,7 +1548,7 @@ NTSTATUS _lsa_OpenTrustedDomain(struct pipes_struct *p,
                                struct lsa_OpenTrustedDomain *r)
 {
        struct lsa_info *handle = NULL;
-       struct trustdom_info *info;
+       struct trustdom_info *info = NULL;
        NTSTATUS status;
 
        if (!find_policy_by_hnd(p, r->in.handle, (void **)(void *)&handle)) {
@@ -1578,7 +1578,7 @@ NTSTATUS _lsa_OpenTrustedDomainByName(struct pipes_struct *p,
                                      struct lsa_OpenTrustedDomainByName *r)
 {
        struct lsa_info *handle = NULL;
-       struct trustdom_info *info;
+       struct trustdom_info *info = NULL;
        NTSTATUS status;
 
        if (!find_policy_by_hnd(p, r->in.handle, (void **)(void *)&handle)) {
@@ -2827,7 +2827,7 @@ NTSTATUS _lsa_QuerySecurity(struct pipes_struct *p,
 {
        struct lsa_info *handle=NULL;
        struct security_descriptor *psd = NULL;
-       size_t sd_size;
+       size_t sd_size = 0;
        NTSTATUS status;
 
        /* find the connection policy handle. */