missing free.
authormarkus <markus@openbsd.org>
Tue, 4 Apr 2000 15:30:51 +0000 (15:30 +0000)
committermarkus <markus@openbsd.org>
Tue, 4 Apr 2000 15:30:51 +0000 (15:30 +0000)
usr.bin/ssh/sshconnect.c

index 3999d95..972ffee 100644 (file)
@@ -10,7 +10,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: sshconnect.c,v 1.59 2000/04/04 15:19:43 markus Exp $");
+RCSID("$OpenBSD: sshconnect.c,v 1.60 2000/04/04 15:30:51 markus Exp $");
 
 #include <ssl/bn.h>
 #include "xmalloc.h"
@@ -1467,8 +1467,8 @@ ssh_kex2(char *host, struct sockaddr *hostaddr)
            dh_server_pub,
            shared_secret
        );
-       buffer_clear(client_kexinit);
-       buffer_clear(server_kexinit);
+       buffer_free(client_kexinit);
+       buffer_free(server_kexinit);
        xfree(client_kexinit);
        xfree(server_kexinit);
 #ifdef DEBUG_KEXDH