(authdes_pk_create): If conversation key cannot be created, free memory.
authorUlrich Drepper <drepper@redhat.com>
Wed, 7 Dec 2005 04:10:51 +0000 (04:10 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 7 Dec 2005 04:10:51 +0000 (04:10 +0000)
sunrpc/auth_des.c

index 7fe96ca..dbd12e5 100644 (file)
@@ -174,7 +174,7 @@ authdes_pk_create (const char *servername, netobj *pkey, u_int window,
       if (key_gendes (&auth->ah_key) < 0)
        {
          debug ("authdes_create: unable to gen conversation key");
-         return NULL;
+         goto failed;
        }
     }
   else