From: Greg Hudson Date: Thu, 12 Feb 2009 17:51:45 +0000 (+0000) Subject: Fix allocation failure check in walk_rtree X-Git-Tag: krb5-1.8-alpha1~642 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a325faadc86039d4e6ec876f49319251eb7afbc8;p=krb5.git Fix allocation failure check in walk_rtree Check the correct variable for null after allocating the server string in rtree_capath_vals. ticket: 6392 tags: pullup target_version: 1.7 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21980 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/walk_rtree.c b/src/lib/krb5/krb/walk_rtree.c index 5577bb909..a22f5864a 100644 --- a/src/lib/krb5/krb/walk_rtree.c +++ b/src/lib/krb5/krb/walk_rtree.c @@ -273,7 +273,7 @@ rtree_capath_vals( memcpy(clientz, client->data, client->length); serverz = calloc(server->length + 1, 1); - if (clientz == NULL) { + if (serverz == NULL) { retval = ENOMEM; goto error; }