krb5 commit: Fix initial call to svcraw_create

Greg Hudson ghudson at MIT.EDU
Mon Jan 7 01:42:51 EST 2013


https://github.com/krb5/krb5/commit/5e3bf4ac6cb02601c5f10c5b2804fd5028c80119
commit 5e3bf4ac6cb02601c5f10c5b2804fd5028c80119
Author: Nickolai Zeldovich <nickolai at csail.mit.edu>
Date:   Mon Jan 7 01:33:15 2013 -0500

    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 at mit.edu: commit message, patch splitting]
    
    ticket: 7534

 src/lib/rpc/svc_raw.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/lib/rpc/svc_raw.c b/src/lib/rpc/svc_raw.c
index 83e5474..ef5f3d3 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;


More information about the cvs-krb5 mailing list