diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-05-29 10:28:48 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-05-29 10:28:48 +1000 |
commit | 782727ac611b159973a5dd05f8d8cfa82cd734d0 (patch) | |
tree | a4319b8683124000efc1b0e4f14ddfd355d1974f /openbsd-compat | |
parent | 5d72a40d67d606a22f75999dc8bf1b846815ec2a (diff) |
20050529
- (dtucker) [openbsd-compat/port-aix.c] Bug #1046: AIX 5.3 expects the
argument to passwdexpired to be initialized to NULL. Suggested by tim@
While at it, initialize the other arguments to auth functions in case they
ever acquire this behaviour.
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/port-aix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c index cf5d4b9a3..c711283dd 100644 --- a/openbsd-compat/port-aix.c +++ b/openbsd-compat/port-aix.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * | 2 | * |
3 | * Copyright (c) 2001 Gert Doering. All rights reserved. | 3 | * Copyright (c) 2001 Gert Doering. All rights reserved. |
4 | * Copyright (c) 2003,2004 Darren Tucker. All rights reserved. | 4 | * Copyright (c) 2003,2004,2005 Darren Tucker. All rights reserved. |
5 | * | 5 | * |
6 | * Redistribution and use in source and binary forms, with or without | 6 | * Redistribution and use in source and binary forms, with or without |
7 | * modification, are permitted provided that the following conditions | 7 | * modification, are permitted provided that the following conditions |
@@ -153,7 +153,7 @@ aix_valid_authentications(const char *user) | |||
153 | int | 153 | int |
154 | sys_auth_passwd(Authctxt *ctxt, const char *password) | 154 | sys_auth_passwd(Authctxt *ctxt, const char *password) |
155 | { | 155 | { |
156 | char *authmsg = NULL, *msg, *name = ctxt->pw->pw_name; | 156 | char *authmsg = NULL, *msg = NULL, *name = ctxt->pw->pw_name; |
157 | int authsuccess = 0, expired, reenter, result; | 157 | int authsuccess = 0, expired, reenter, result; |
158 | 158 | ||
159 | do { | 159 | do { |
@@ -257,7 +257,7 @@ int | |||
257 | sys_auth_record_login(const char *user, const char *host, const char *ttynm, | 257 | sys_auth_record_login(const char *user, const char *host, const char *ttynm, |
258 | Buffer *loginmsg) | 258 | Buffer *loginmsg) |
259 | { | 259 | { |
260 | char *msg; | 260 | char *msg = NULL; |
261 | int success = 0; | 261 | int success = 0; |
262 | 262 | ||
263 | aix_setauthdb(user); | 263 | aix_setauthdb(user); |