krb5 commit [krb5-1.9]: Fix initial call to svcraw_create

Tom Yu tlyu at MIT.EDU
Tue Apr 23 17:19:28 EDT 2013


https://github.com/krb5/krb5/commit/3db4dcb75ad6a275d300e2c1df83877918fec20a
commit 3db4dcb75ad6a275d300e2c1df83877918fec20a
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]
    
    (cherry picked from commit 5e3bf4ac6cb02601c5f10c5b2804fd5028c80119)
    
    ticket: 7618 (new)

 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