Fix possible core dump in "ssh-add". Patch supplied by Wolfgang Rupprecht
in PR pkg/12669.
This commit is contained in:
parent
c136cf3dfe
commit
517c969698
4
crypto/dist/ssh/ssh-add.c
vendored
4
crypto/dist/ssh/ssh-add.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ssh-add.c,v 1.8 2001/04/10 08:08:01 itojun Exp $ */
|
||||
/* $NetBSD: ssh-add.c,v 1.9 2001/04/16 03:10:14 tron Exp $ */
|
||||
/*
|
||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||
@ -182,7 +182,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
|
||||
pass = ssh_askpass(askpass, msg);
|
||||
}
|
||||
if (strcmp(pass, "") == 0) {
|
||||
xfree(pass);
|
||||
clear_pass();
|
||||
xfree(comment);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user