diff options
author | Damien Miller <djm@mindrot.org> | 2013-11-08 12:28:03 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-11-08 12:28:03 +1100 |
commit | 727a3bfd3b5943bef9a9fd02812e9a75758d6d26 (patch) | |
tree | c9465c196ba7c575797626192d06e35a787a5c7d /auth-options.c | |
parent | 13cfd6d68237ef844dd8e02cf9ed21268154a999 (diff) |
- djm@cvs.openbsd.org 2013/11/08 00:39:15
[auth-options.c auth2-chall.c authfd.c channels.c cipher-3des1.c]
[clientloop.c gss-genr.c monitor_mm.c packet.c schnorr.c umac.c]
[sftp-client.c sftp-glob.c]
use calloc for all structure allocations; from markus@
Diffstat (limited to 'auth-options.c')
-rw-r--r-- | auth-options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auth-options.c b/auth-options.c index 80d59ee95..12e2e1dca 100644 --- a/auth-options.c +++ b/auth-options.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth-options.c,v 1.59 2013/07/12 00:19:58 djm Exp $ */ | 1 | /* $OpenBSD: auth-options.c,v 1.61 2013/11/08 00:39:14 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -239,7 +239,7 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum) | |||
239 | auth_debug_add("Adding to environment: %.900s", s); | 239 | auth_debug_add("Adding to environment: %.900s", s); |
240 | debug("Adding to environment: %.900s", s); | 240 | debug("Adding to environment: %.900s", s); |
241 | opts++; | 241 | opts++; |
242 | new_envstring = xmalloc(sizeof(struct envstring)); | 242 | new_envstring = xcalloc(1, sizeof(struct envstring)); |
243 | new_envstring->s = s; | 243 | new_envstring->s = s; |
244 | new_envstring->next = custom_environment; | 244 | new_envstring->next = custom_environment; |
245 | custom_environment = new_envstring; | 245 | custom_environment = new_envstring; |