summaryrefslogtreecommitdiff
path: root/auth-rsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-rsa.c')
-rw-r--r--auth-rsa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/auth-rsa.c b/auth-rsa.c
index 9c5d484b1..c51400c2a 100644
--- a/auth-rsa.c
+++ b/auth-rsa.c
@@ -14,7 +14,7 @@
14 */ 14 */
15 15
16#include "includes.h" 16#include "includes.h"
17RCSID("$OpenBSD: auth-rsa.c,v 1.52 2002/03/18 17:50:31 provos Exp $"); 17RCSID("$OpenBSD: auth-rsa.c,v 1.53 2002/03/25 09:21:13 markus Exp $");
18 18
19#include <openssl/rsa.h> 19#include <openssl/rsa.h>
20#include <openssl/md5.h> 20#include <openssl/md5.h>
@@ -165,7 +165,7 @@ auth_rsa_key_allowed(struct passwd *pw, BIGNUM *client_n, Key **rkey)
165 /* Restore the privileged uid. */ 165 /* Restore the privileged uid. */
166 restore_uid(); 166 restore_uid();
167 xfree(file); 167 xfree(file);
168 return (NULL); 168 return (0);
169 } 169 }
170 /* Open the file containing the authorized keys. */ 170 /* Open the file containing the authorized keys. */
171 f = fopen(file, "r"); 171 f = fopen(file, "r");
@@ -173,7 +173,7 @@ auth_rsa_key_allowed(struct passwd *pw, BIGNUM *client_n, Key **rkey)
173 /* Restore the privileged uid. */ 173 /* Restore the privileged uid. */
174 restore_uid(); 174 restore_uid();
175 xfree(file); 175 xfree(file);
176 return (NULL); 176 return (0);
177 } 177 }
178 if (options.strict_modes && 178 if (options.strict_modes &&
179 secure_filename(f, file, pw, line, sizeof(line)) != 0) { 179 secure_filename(f, file, pw, line, sizeof(line)) != 0) {
@@ -181,7 +181,7 @@ auth_rsa_key_allowed(struct passwd *pw, BIGNUM *client_n, Key **rkey)
181 fclose(f); 181 fclose(f);
182 log("Authentication refused: %s", line); 182 log("Authentication refused: %s", line);
183 restore_uid(); 183 restore_uid();
184 return (NULL); 184 return (0);
185 } 185 }
186 186
187 /* Flag indicating whether the key is allowed. */ 187 /* Flag indicating whether the key is allowed. */