mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02:00
- (djm) [loginrec.c] xmalloc
This commit is contained in:
parent
6b0279c084
commit
b0aae333fd
@ -2,6 +2,7 @@
|
|||||||
- (djm) [loginrec.c] Start KNF and tidy up of this long-neglected file.
|
- (djm) [loginrec.c] Start KNF and tidy up of this long-neglected file.
|
||||||
No change in resultant binary
|
No change in resultant binary
|
||||||
- (djm) [loginrec.c] __func__ifiy
|
- (djm) [loginrec.c] __func__ifiy
|
||||||
|
- (djm) [loginrec.c] xmalloc
|
||||||
|
|
||||||
20040911
|
20040911
|
||||||
- (djm) [ssh-agent.c] unifdef some cygwin code; ok dtucker@
|
- (djm) [ssh-agent.c] unifdef some cygwin code; ok dtucker@
|
||||||
@ -1739,4 +1740,4 @@
|
|||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.3549 2004/09/12 05:25:17 djm Exp $
|
$Id: ChangeLog,v 1.3550 2004/09/12 05:26:00 djm Exp $
|
||||||
|
@ -140,7 +140,7 @@
|
|||||||
# include <libutil.h>
|
# include <libutil.h>
|
||||||
#endif
|
#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
|
** prototypes for helper functions in this file
|
||||||
@ -1353,10 +1353,7 @@ syslogin_perform_login(struct logininfo *li)
|
|||||||
{
|
{
|
||||||
struct utmp *ut;
|
struct utmp *ut;
|
||||||
|
|
||||||
if ((ut = (struct utmp *)malloc(sizeof(*ut))) == NULL) {
|
ut = xmalloc(sizeof(*ut));
|
||||||
logit("%s: couldn't malloc()", __func__);
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
construct_utmp(li, ut);
|
construct_utmp(li, ut);
|
||||||
login(ut);
|
login(ut);
|
||||||
free(ut);
|
free(ut);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user