Mercurial > pidgin.yaz
changeset 19551:ce3dec442fec
Replace a call to g_assert() with a logging statement
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 30 Aug 2007 07:40:27 +0000 |
parents | 0a6ed4e36ca8 |
children | c35c3c3fc4cf |
files | libpurple/plugins/ssl/ssl-gnutls.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/plugins/ssl/ssl-gnutls.c Thu Aug 30 07:26:45 2007 +0000 +++ b/libpurple/plugins/ssl/ssl-gnutls.c Thu Aug 30 07:40:27 2007 +0000 @@ -426,12 +426,14 @@ static void x509_crtdata_delref(x509_crtdata_t *cd) { - g_assert(cd->refcount > 0); - (cd->refcount)--; + if (cd->refcount <= 0) + g_critical("Refcount of x509_crtdata_t is %d, which is less " + "than zero!\n", cd->refcount); + /* If the refcount reaches zero, kill the structure */ - if (cd->refcount == 0) { + if (cd->refcount <= 0) { purple_debug_info("gnutls/x509", "Freeing unused cert data at %p\n", cd);