pull up r21980 from trunk
authorTom Yu <tlyu@mit.edu>
Thu, 19 Feb 2009 00:38:27 +0000 (00:38 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 19 Feb 2009 00:38:27 +0000 (00:38 +0000)
 ------------------------------------------------------------------------
 r21980 | ghudson | 2009-02-12 12:51:45 -0500 (Thu, 12 Feb 2009) | 8 lines
 Changed paths:
    M /trunk/src/lib/krb5/krb/walk_rtree.c

 ticket: 6392
 subject: Fix allocation failure check in walk_rtree
 tags: pullup
 target_version: 1.7

 Check the correct variable for null after allocating the server string
 in rtree_capath_vals.

 ------------------------------------------------------------------------

ticket: 6392
version_fixed: 1.7
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-7@22036 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/walk_rtree.c

index 5577bb9092c10682e2bca9623ac48f701b1197cd..a22f5864ac82e188d5c401d69c026a9288d38b2d 100644 (file)
@@ -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;
     }