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 73e330bf5..15c00d048 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 |
@@ -250,7 +250,7 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum) | |||
250 | auth_debug_add("Adding to environment: %.900s", s); | 250 | auth_debug_add("Adding to environment: %.900s", s); |
251 | debug("Adding to environment: %.900s", s); | 251 | debug("Adding to environment: %.900s", s); |
252 | opts++; | 252 | opts++; |
253 | new_envstring = xmalloc(sizeof(struct envstring)); | 253 | new_envstring = xcalloc(1, sizeof(struct envstring)); |
254 | new_envstring->s = s; | 254 | new_envstring->s = s; |
255 | new_envstring->next = custom_environment; | 255 | new_envstring->next = custom_environment; |
256 | custom_environment = new_envstring; | 256 | custom_environment = new_envstring; |