Mercurial > noffle
comparison src/client.c @ 298:1aa690671cd7 noffle
[svn] * src/client.c: Fix horror in authentication.
author | bears |
---|---|
date | Mon, 10 Feb 2003 18:28:30 +0000 |
parents | 01755687c565 |
children | ff7a2dc6023e |
comparison
equal
deleted
inserted
replaced
297:4dc7dabd9318 | 298:1aa690671cd7 |
---|---|
1 /* | 1 /* |
2 client.c | 2 client.c |
3 | 3 |
4 $Id: client.c 419 2003-01-10 23:11:43Z bears $ | 4 $Id: client.c 430 2003-02-10 18:28:30Z bears $ |
5 */ | 5 */ |
6 | 6 |
7 #if HAVE_CONFIG_H | 7 #if HAVE_CONFIG_H |
8 #include <config.h> | 8 #include <config.h> |
9 #endif | 9 #endif |
164 stat = getStat(); | 164 stat = getStat(); |
165 if ( stat == STAT_AUTH_ACCEPTED | 165 if ( stat == STAT_AUTH_ACCEPTED |
166 || stat == STAT_AUTH_ACCEPTED_DEPREC ) | 166 || stat == STAT_AUTH_ACCEPTED_DEPREC ) |
167 return stat; | 167 return stat; |
168 else if ( stat != STAT_MORE_AUTH_REQUIRED_DEPREC | 168 else if ( stat != STAT_MORE_AUTH_REQUIRED_DEPREC |
169 && stat != STAT_AUTH_REQUIRED ) | 169 && stat != STAT_MORE_AUTH_REQUIRED ) |
170 { | 170 { |
171 Log_err( "Username rejected. Server stat: %s", client.lastStat ); | 171 Log_err( "Username rejected. Server stat: %s", client.lastStat ); |
172 return stat; | 172 return stat; |
173 } | 173 } |
174 if ( strcmp( pass, "" ) == 0 ) | 174 if ( strcmp( pass, "" ) == 0 ) |