about summary refs log tree commit diff
path: root/sunrpc/auth_des.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-07 04:10:51 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-07 04:10:51 +0000
commit1eab3551982e7688f94c0e052c18129d238fa673 (patch)
tree7b0383220911982a7d778d6a55092af6e42c1edf /sunrpc/auth_des.c
parent2ce7e666e9f64730bdac1be1c7b43c2375d82826 (diff)
downloadglibc-1eab3551982e7688f94c0e052c18129d238fa673.tar.gz
glibc-1eab3551982e7688f94c0e052c18129d238fa673.tar.xz
glibc-1eab3551982e7688f94c0e052c18129d238fa673.zip
(authdes_pk_create): If conversation key cannot be created, free memory.
Diffstat (limited to 'sunrpc/auth_des.c')
-rw-r--r--sunrpc/auth_des.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/auth_des.c b/sunrpc/auth_des.c
index 7fe96ca765..dbd12e5aad 100644
--- a/sunrpc/auth_des.c
+++ b/sunrpc/auth_des.c
@@ -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