projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42fc231
)
Don't print errors if the error is zero.
author
aland
<aland>
Sun, 8 Apr 2007 06:10:40 +0000
(06:10 +0000)
committer
aland
<aland>
Sun, 8 Apr 2007 06:10:40 +0000
(06:10 +0000)
This closes bug #436
src/modules/rlm_eap/libeap/tls.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_eap/libeap/tls.c
b/src/modules/rlm_eap/libeap/tls.c
index
cb7f578
..
e47c101
100644
(file)
--- a/
src/modules/rlm_eap/libeap/tls.c
+++ b/
src/modules/rlm_eap/libeap/tls.c
@@
-95,8
+95,11
@@
tls_session_t *eaptls_new_session(SSL_CTX *ssl_ctx, int client_cert)
static int int_ssl_check(SSL *s, int ret, const char *text)
{
int e;
+ unsigned long l;
- radlog(L_ERR, "rlm_eap: SSL error %s", ERR_error_string(ERR_get_error(), NULL));
+ if ((l = ERR_get_error()) != 0) {
+ radlog(L_ERR, "rlm_eap: SSL error %s",
+ ERR_error_string(l, NULL));
e = SSL_get_error(s, ret);
switch(e) {