diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/msg.c | 4 | ||||
-rw-r--r-- | runtime/nsd_gtls.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/runtime/msg.c b/runtime/msg.c index 8dbb0693..f4ea0cc2 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -2222,8 +2222,8 @@ char *textpri(char *pRes, size_t pResLen, int pri) assert(pRes != NULL); assert(pResLen > 0); - snprintf(pRes, pResLen, "%s.%s<%d>", syslog_fac_names[LOG_FAC(pri)], - syslog_severity_names[LOG_PRI(pri)], pri); + snprintf(pRes, pResLen, "%s.%s", syslog_fac_names[LOG_FAC(pri)], + syslog_severity_names[LOG_PRI(pri)]); return pRes; } diff --git a/runtime/nsd_gtls.c b/runtime/nsd_gtls.c index 17ac426b..ab47f231 100644 --- a/runtime/nsd_gtls.c +++ b/runtime/nsd_gtls.c @@ -204,10 +204,14 @@ finalize_it: if(iRet != RS_RET_OK) { if(data.data != NULL) free(data.data); - if(pThis->bOurCertIsInit) + if(pThis->bOurCertIsInit) { gnutls_x509_crt_deinit(pThis->ourCert); - if(pThis->bOurKeyIsInit) + pThis->bOurCertIsInit = 0; + } + if(pThis->bOurKeyIsInit) { gnutls_x509_privkey_deinit(pThis->ourKey); + pThis->bOurKeyIsInit = 0; + } } RETiRet; } |