From: Nickolai Zeldovich Date: Mon, 7 Jan 2013 06:33:15 +0000 (-0500) Subject: Fix initial call to svcraw_create X-Git-Tag: krb5-1.12-alpha1~372 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e3bf4ac6cb02601c5f10c5b2804fd5028c80119;p=thirdparty%2Fkrb5.git Fix initial call to svcraw_create 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 --- diff --git a/src/lib/rpc/svc_raw.c b/src/lib/rpc/svc_raw.c index 83e547475e..ef5f3d3d7b 100644 --- a/src/lib/rpc/svc_raw.c +++ b/src/lib/rpc/svc_raw.c @@ -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;