[evolution-data-server] e_soup_auth_bearer_is_expired: Add forgotten safety guard



commit 475f65ea455f57f2c6e24edf29678cd85df69175
Author: Milan Crha <mcrha redhat com>
Date:   Mon Sep 5 23:15:39 2016 +0200

    e_soup_auth_bearer_is_expired: Add forgotten safety guard

 libedataserver/e-soup-auth-bearer.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libedataserver/e-soup-auth-bearer.c b/libedataserver/e-soup-auth-bearer.c
index f44be33..41ce32e 100644
--- a/libedataserver/e-soup-auth-bearer.c
+++ b/libedataserver/e-soup-auth-bearer.c
@@ -200,6 +200,8 @@ e_soup_auth_bearer_is_expired (ESoupAuthBearer *bearer)
 {
        gboolean expired = TRUE;
 
+       g_return_val_if_fail (E_IS_SOUP_AUTH_BEARER (bearer), TRUE);
+
        if (bearer->priv->expiry != EXPIRY_INVALID)
                expired = (bearer->priv->expiry < time (NULL));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]