Commits (1)
...@@ -166,16 +166,15 @@ typedef struct { ...@@ -166,16 +166,15 @@ typedef struct {
} \ } \
} while(0) } while(0)
#define GCESHL(status, server, sock, host, log_level, sess, action) do { \ #define GCESHL(status, server, sock, host, log_level, sess, action) do { \
char *GCES_estr; \ char *GCES_estr; \
int GCES_level; \ int GCES_level; \
get_crypt_error_string(status, sess, &GCES_estr, action, &GCES_level); \ get_crypt_error_string(status, sess, &GCES_estr, action, &GCES_level); \
if (GCES_estr) { \ if (GCES_estr) { \
if(log_level < startup->tls_error_level) \ lprintf((log_level < startup->tls_error_level) ? startup->tls_error_level : log_level \
log_level = startup->tls_error_level; \ , "%04d %s [%s] %s", sock, server, host, GCES_estr); \
lprintf(log_level, "%04d %s [%s] %s", sock, server, host, GCES_estr); \ free_crypt_attrstr(GCES_estr); \
free_crypt_attrstr(GCES_estr); \ } \
} \
} while(0) } while(0)
#if defined(__GNUC__) // Catch printf-format errors with lprintf #if defined(__GNUC__) // Catch printf-format errors with lprintf
......