summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2003-11-03 09:37:33 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2003-11-03 09:37:33 +0000
commit0a7b3aa640fe55ad16d2b33a5bb3dfa84eb0b040 (patch)
treeb4b099e29419fd8621628b15c70308ad689b26fb /usr.bin/ssh
parent4fb8fc147747a76945e7a02b58bbfbbb0401ccc5 (diff)
do not free static type pointer in warn_changed_key()
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/sshconnect.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c
index a3b6e24c0ef..e6c3c98cff0 100644
--- a/usr.bin/ssh/sshconnect.c
+++ b/usr.bin/ssh/sshconnect.c
@@ -13,7 +13,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshconnect.c,v 1.150 2003/11/03 09:09:41 jakob Exp $");
+RCSID("$OpenBSD: sshconnect.c,v 1.151 2003/11/03 09:37:32 jakob Exp $");
#include <openssl/bn.h>
@@ -1033,7 +1033,7 @@ static void
warn_changed_key(Key *host_key)
{
char *fp;
- char *type = key_type(host_key);
+ const char *type = key_type(host_key);
fp = key_fingerprint(host_key, SSH_FP_MD5, SSH_FP_HEX);
@@ -1048,5 +1048,4 @@ warn_changed_key(Key *host_key)
error("Please contact your system administrator.");
xfree(fp);
- xfree(type);
}