diff options
author | Damien Miller <djm@mindrot.org> | 2004-09-12 15:26:00 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-09-12 15:26:00 +1000 |
commit | b0aae333fdecf769da6e693e63d6905713bc0fe6 (patch) | |
tree | 9079340599303f79eb8606583e9b2aa2d8d49e7d /loginrec.c | |
parent | 6b0279c084f93a1e36ad648fd428297cc728cd35 (diff) | |
download | openssh-git-b0aae333fdecf769da6e693e63d6905713bc0fe6.tar.gz |
- (djm) [loginrec.c] xmalloc
Diffstat (limited to 'loginrec.c')
-rw-r--r-- | loginrec.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -140,7 +140,7 @@ # include <libutil.h> #endif -RCSID("$Id: loginrec.c,v 1.61 2004/09/12 05:25:17 djm Exp $"); +RCSID("$Id: loginrec.c,v 1.62 2004/09/12 05:26:01 djm Exp $"); /** ** prototypes for helper functions in this file @@ -1353,10 +1353,7 @@ syslogin_perform_login(struct logininfo *li) { struct utmp *ut; - if ((ut = (struct utmp *)malloc(sizeof(*ut))) == NULL) { - logit("%s: couldn't malloc()", __func__); - return (0); - } + ut = xmalloc(sizeof(*ut)); construct_utmp(li, ut); login(ut); free(ut); |