]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix initial call to svcraw_create
authorNickolai Zeldovich <nickolai@csail.mit.edu>
Mon, 7 Jan 2013 06:33:15 +0000 (01:33 -0500)
committerTom Yu <tlyu@mit.edu>
Mon, 22 Apr 2013 23:59:20 +0000 (19:59 -0400)
gssrpc raw services could not work because svcraw_create did not set
svcraw_private after allocating memory for it.

[ghudson@mit.edu: commit message, patch splitting]

(cherry picked from commit 5e3bf4ac6cb02601c5f10c5b2804fd5028c80119)

ticket: 7618 (new)

src/lib/rpc/svc_raw.c

index 83e547475e2e25c9c873e8665e851d07d9503c5d..ef5f3d3d7baaf57e15dc7fb37b587fd23470641c 100644 (file)
@@ -80,6 +80,7 @@ svcraw_create(void)
                srp = (struct svcraw_private *)calloc(1, sizeof (*srp));
                if (srp == 0)
                        return (0);
+               svcraw_private = srp;
        }
        srp->server.xp_sock = 0;
        srp->server.xp_port = 0;