]> 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)
committerGreg Hudson <ghudson@mit.edu>
Mon, 7 Jan 2013 06:35:13 +0000 (01:35 -0500)
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]

ticket: 7534

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;