]> granicus.if.org Git - sudo/commitdiff
init crypt_type to INT_MAX since it is legal to be negative in DUNX 5.0
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 22 Oct 1998 00:19:01 +0000 (00:19 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 22 Oct 1998 00:19:01 +0000 (00:19 +0000)
getspwuid.c
secureware.c

index 70a8e9d9f606dd6efbe14414b945b3a2bde25589..e0f9b5c3fbbdf20c46851b5981ef55b9cfc33189 100644 (file)
@@ -86,7 +86,7 @@ extern char *strdup     __P((const char *));
  * Global variables (yuck)
  */
 #if defined(HAVE_GETPRPWNAM) && defined(__alpha)
-int crypt_type = -1;
+int crypt_type = INT_MAX;
 #endif /* HAVE_GETPRPWNAM && __alpha */
 
 
index 23bf234f9b0a844875a2013105a2f8e8f7ebc79a..e8406f6b5846eec5f8571554d6ea0dcd6112fe6c 100644 (file)
@@ -73,7 +73,7 @@ int check_secureware(pass)
 #ifdef __alpha
     extern int crypt_type;
 
-    if (crypt_type != -1 &&
+    if (crypt_type != INT_MAX &&
        strcmp(user_passwd, dispcrypt(pass, user_passwd, crypt_type)) == 0)
        return(1);
 #elif defined(HAVE_BIGCRYPT)