[krb5-auth-dialog] Make sure my_creds is properly initialized so freeing doesn't dump core
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] Make sure my_creds is properly initialized so freeing doesn't dump core
- Date: Fri, 18 Jun 2010 18:56:37 +0000 (UTC)
commit 71809f1d4372da6ba62c2d678063f006746d07cb
Author: Guido Günther <agx sigxcpu org>
Date: Fri Jun 18 20:55:06 2010 +0200
Make sure my_creds is properly initialized so freeing doesn't dump core
src/ka-dialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ka-dialog.c b/src/ka-dialog.c
index 590bdad..f11293d 100644
--- a/src/ka-dialog.c
+++ b/src/ka-dialog.c
@@ -206,6 +206,7 @@ credentials_expiring_real (KaApplet* applet)
krb5_timestamp now;
gboolean retval = FALSE;
+ memset(&my_creds, 0, sizeof(my_creds));
ka_applet_set_tgt_renewable(applet, FALSE);
if (!ka_get_tgt_from_ccache (kcontext, &my_creds)) {
creds_expiry = 0;
@@ -806,6 +807,7 @@ ka_renew_credentials (KaApplet* applet)
krb5_creds my_creds;
krb5_ccache ccache;
+ memset(&my_creds, 0, sizeof(my_creds));
if (kprincipal == NULL) {
retval = ka_parse_name(applet, kcontext, &kprincipal);
if (retval)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]