Skip to content

Commit

Permalink
Fix initial call to svcraw_create
Browse files Browse the repository at this point in the history
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 5e3bf4a)

ticket: 7618 (new)
  • Loading branch information
zeldovich authored and tlyu committed Apr 22, 2013
1 parent 5bad062 commit 3db4dcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/rpc/svc_raw.c
Expand Up @@ -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;
Expand Down

0 comments on commit 3db4dcb

Please sign in to comment.