diff options
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; |