=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth-bsdauth.c,v retrieving revision 1.6.6.1 retrieving revision 1.7 diff -u -r1.6.6.1 -r1.7 --- src/usr.bin/ssh/auth-bsdauth.c 2006/09/30 04:06:50 1.6.6.1 +++ src/usr.bin/ssh/auth-bsdauth.c 2006/03/19 18:51:18 1.7 @@ -1,4 +1,3 @@ -/* $OpenBSD: auth-bsdauth.c,v 1.6.6.1 2006/09/30 04:06:50 brad Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. * @@ -22,19 +21,12 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "includes.h" -#include - #ifdef BSD_AUTH #include "xmalloc.h" -#include "key.h" -#include "hostfile.h" #include "auth.h" #include "log.h" -#include "buffer.h" -#ifdef GSSAPI -#include "ssh-gss.h" -#endif #include "monitor_wrap.h" static void * @@ -76,8 +68,9 @@ *name = xstrdup(""); *infotxt = xstrdup(""); *numprompts = 1; - *prompts = xcalloc(*numprompts, sizeof(char *)); - *echo_on = xcalloc(*numprompts, sizeof(u_int)); + *prompts = xmalloc(*numprompts * sizeof(char *)); + *echo_on = xmalloc(*numprompts * sizeof(u_int)); + (*echo_on)[0] = 0; (*prompts)[0] = xstrdup(challenge); return 0;