summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--loginrec.c7
2 files changed, 4 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index bddbf611c..e1cf4153f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
2 - (djm) [loginrec.c] Start KNF and tidy up of this long-neglected file. 2 - (djm) [loginrec.c] Start KNF and tidy up of this long-neglected file.
3 No change in resultant binary 3 No change in resultant binary
4 - (djm) [loginrec.c] __func__ifiy 4 - (djm) [loginrec.c] __func__ifiy
5 - (djm) [loginrec.c] xmalloc
5 6
620040911 720040911
7 - (djm) [ssh-agent.c] unifdef some cygwin code; ok dtucker@ 8 - (djm) [ssh-agent.c] unifdef some cygwin code; ok dtucker@
@@ -1739,4 +1740,4 @@
1739 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 1740 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
1740 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 1741 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
1741 1742
1742$Id: ChangeLog,v 1.3549 2004/09/12 05:25:17 djm Exp $ 1743$Id: ChangeLog,v 1.3550 2004/09/12 05:26:00 djm Exp $
diff --git a/loginrec.c b/loginrec.c
index e6b70f58c..25aa29f2f 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -140,7 +140,7 @@
140# include <libutil.h> 140# include <libutil.h>
141#endif 141#endif
142 142
143RCSID("$Id: loginrec.c,v 1.61 2004/09/12 05:25:17 djm Exp $"); 143RCSID("$Id: loginrec.c,v 1.62 2004/09/12 05:26:01 djm Exp $");
144 144
145/** 145/**
146 ** prototypes for helper functions in this file 146 ** prototypes for helper functions in this file
@@ -1353,10 +1353,7 @@ syslogin_perform_login(struct logininfo *li)
1353{ 1353{
1354 struct utmp *ut; 1354 struct utmp *ut;
1355 1355
1356 if ((ut = (struct utmp *)malloc(sizeof(*ut))) == NULL) { 1356 ut = xmalloc(sizeof(*ut));
1357 logit("%s: couldn't malloc()", __func__);
1358 return (0);
1359 }
1360 construct_utmp(li, ut); 1357 construct_utmp(li, ut);
1361 login(ut); 1358 login(ut);
1362 free(ut); 1359 free(ut);