summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-01-29 20:55:09 +1100
committerDamien Miller <djm@mindrot.org>2000-01-29 20:55:09 +1100
commit6034fdfd1f5382bf56dee5a7ee5b9e41b52c5240 (patch)
tree811b8039cee9f9b01c3c98df6c273ea3afaacde6
parentf07390e90da683fecbf55849a3cee6dc9b79a3e3 (diff)
- Compile fix from Andre Lucas <andre.lucas@dial.pipex.com>
-rw-r--r--ChangeLog1
-rw-r--r--login.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 30c21570..affee131 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
20000127
- Seed OpenSSL's random number generator before generating RSA keypairs
- Split random collector into seperate file
+ - Compile fix from Andre Lucas <andre.lucas@dial.pipex.com>
20000126
- Released 1.2.2 stable
diff --git a/login.c b/login.c
index 485b9d5e..54d44205 100644
--- a/login.c
+++ b/login.c
@@ -18,7 +18,7 @@
*/
#include "includes.h"
-RCSID("$Id: login.c,v 1.20 2000/01/26 00:04:48 damien Exp $");
+RCSID("$Id: login.c,v 1.21 2000/01/29 09:55:10 damien Exp $");
#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
# include <utmpx.h>
@@ -210,7 +210,7 @@ record_login(int pid, const char *ttyname, const char *user, uid_t uid,
# endif /* HAVE_SYSLEN_IN_UTMPX */
# endif
#if defined(HAVE_ADDR_IN_UTMPX)
- if (addr)
+ if (addr) {
switch (addr->sa_family) {
case AF_INET: {
struct sockaddr_in *in = (struct sockaddr_in*)addr;