--- embedaddon/sudo/plugins/sudoers/auth/secureware.c 2013/07/22 10:46:12 1.1.1.3 +++ embedaddon/sudo/plugins/sudoers/auth/secureware.c 2014/06/15 16:12:54 1.1.1.5 @@ -86,8 +86,8 @@ sudo_secureware_verify(struct passwd *pw, char *pass, epass = bigcrypt(pass, pw_epasswd); else if (crypt_type == AUTH_CRYPT_CRYPT16) epass = crypt(pass, pw_epasswd); - } # endif /* HAVE_DISPCRYPT */ + } #elif defined(HAVE_BIGCRYPT) epass = bigcrypt(pass, pw_epasswd); #endif /* __alpha */ @@ -106,7 +106,7 @@ sudo_secureware_cleanup(pw, auth) debug_decl(sudo_secureware_cleanup, SUDO_DEBUG_AUTH) if (pw_epasswd != NULL) { - zero_bytes(pw_epasswd, strlen(pw_epasswd)); + memset_s(pw_epasswd, SUDO_CONV_REPL_MAX, 0, strlen(pw_epasswd)); efree(pw_epasswd); } debug_return_int(AUTH_SUCCESS);