summaryrefslogtreecommitdiff
path: root/gss-genr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gss-genr.c')
-rw-r--r--gss-genr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gss-genr.c b/gss-genr.c
index 8d75ee5c7..9cedfcdc3 100644
--- a/gss-genr.c
+++ b/gss-genr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gss-genr.c,v 1.7 2006/03/20 04:07:49 djm Exp $ */ 1/* $OpenBSD: gss-genr.c,v 1.8 2006/03/25 00:05:41 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. 4 * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
@@ -135,9 +135,7 @@ ssh_gssapi_last_error(Gssctxt *ctxt, OM_uint32 *major_status,
135void 135void
136ssh_gssapi_build_ctx(Gssctxt **ctx) 136ssh_gssapi_build_ctx(Gssctxt **ctx)
137{ 137{
138 *ctx = xmalloc(sizeof (Gssctxt)); 138 *ctx = xcalloc(1, sizeof (Gssctxt));
139 (*ctx)->major = 0;
140 (*ctx)->minor = 0;
141 (*ctx)->context = GSS_C_NO_CONTEXT; 139 (*ctx)->context = GSS_C_NO_CONTEXT;
142 (*ctx)->name = GSS_C_NO_NAME; 140 (*ctx)->name = GSS_C_NO_NAME;
143 (*ctx)->oid = GSS_C_NO_OID; 141 (*ctx)->oid = GSS_C_NO_OID;