# HG changeset patch # User Mark Doliner # Date 1188459627 0 # Node ID ce3dec442fec447bc15290a5d7dfb8e054ae8022 # Parent 0a6ed4e36ca8ec232e3e3519448ad14224b7c46a Replace a call to g_assert() with a logging statement diff -r 0a6ed4e36ca8 -r ce3dec442fec libpurple/plugins/ssl/ssl-gnutls.c --- 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);