[gnome-online-accounts/wip/rishi/owncloud-gssapi: 2/9] kerberos: Only write to the optional (out) variable if it is not NULL
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/owncloud-gssapi: 2/9] kerberos: Only write to the optional (out) variable if it is not NULL
- Date: Tue, 26 Apr 2016 16:52:00 +0000 (UTC)
commit 4fd6cdec612c582f1667513bf7207cec6a8ffa72
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Feb 16 17:20:32 2016 +0100
kerberos: Only write to the optional (out) variable if it is not NULL
https://bugzilla.gnome.org/show_bug.cgi?id=762155
src/goabackend/goakerberosprovider.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goakerberosprovider.c b/src/goabackend/goakerberosprovider.c
index 8e018af..d11815a 100644
--- a/src/goabackend/goakerberosprovider.c
+++ b/src/goabackend/goakerberosprovider.c
@@ -1425,7 +1425,9 @@ ensure_credentials_sync (GoaProvider *provider,
if (time_span < 0 || time_span > G_MAXINT)
time_span = 0;
- *out_expires_in = (int) time_span;
+ if (out_expires_in != NULL)
+ *out_expires_in = (int) time_span;
+
credentials_ensured = TRUE;
g_date_time_unref (now);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]