From: Nikos Mavrogiannopoulos Date: Fri, 4 May 2001 13:08:52 +0000 (+0000) Subject: fixed default case when no -s was specified X-Git-Tag: gnutls-0-1-0-srp~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37fad44b7b351e2eb862739f2084c73239682cd3;p=thirdparty%2Fgnutls.git fixed default case when no -s was specified --- diff --git a/src/crypt.c b/src/crypt.c index e574d8551a..e802f98e9a 100644 --- a/src/crypt.c +++ b/src/crypt.c @@ -70,8 +70,10 @@ int crypt, salt; salt = info.salt; - if(info.crypt==NULL) crypt = SRPSHA1_CRYPT; - else { + if(info.crypt==NULL) { + crypt = SRPSHA1_CRYPT; + salt = 16; + } else { if (strcasecmp( info.crypt, "bcrypt")==0) { crypt = BLOWFISH_CRYPT; if (salt==0) salt = 6; /* cost is 6 */