Diff for /embedaddon/sudo/plugins/sudoers/auth/fwtk.c between versions 1.1.1.2 and 1.1.1.4

version 1.1.1.2, 2012/05/29 12:26:49 version 1.1.1.4, 2013/10/14 07:56:35
Line 1 Line 1
 /*  /*
 * Copyright (c) 1999-2005, 2008, 2010-2011 * Copyright (c) 1999-2005, 2008, 2010-2013
  *      Todd C. Miller <Todd.Miller@courtesan.com>   *      Todd C. Miller <Todd.Miller@courtesan.com>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
Line 22 Line 22
 #include <config.h>  #include <config.h>
   
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/param.h>  
 #include <stdio.h>  #include <stdio.h>
 #ifdef STDC_HEADERS  #ifdef STDC_HEADERS
 # include <stdlib.h>  # include <stdlib.h>
Line 83  int Line 82  int
 sudo_fwtk_verify(struct passwd *pw, char *prompt, sudo_auth *auth)  sudo_fwtk_verify(struct passwd *pw, char *prompt, sudo_auth *auth)
 {  {
     char *pass;                         /* Password from the user */      char *pass;                         /* Password from the user */
    char buf[SUDO_PASS_MAX + 12];     /* General prupose buffer */    char buf[SUDO_CONV_REPL_MAX + 12];     /* General prupose buffer */
     char resp[128];                     /* Response from the server */      char resp[128];                     /* Response from the server */
     int error;      int error;
     debug_decl(sudo_fwtk_verify, SUDO_DEBUG_AUTH)      debug_decl(sudo_fwtk_verify, SUDO_DEBUG_AUTH)
Line 140  restart: Line 139  restart:
         warningx("%s", resp);          warningx("%s", resp);
     error = AUTH_FAILURE;      error = AUTH_FAILURE;
 done:  done:
    zero_bytes(pass, strlen(pass));    memset_s(pass, SUDO_PASS_MAX, 0, strlen(pass));
    zero_bytes(buf, strlen(buf));    memset_s(buf, sizeof(buf), 0, sizeof(buf));
     debug_return_int(error);      debug_return_int(error);
 }  }
   

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>