Pull fix for bug #436 from branch_1_1
authoraland <aland>
Sun, 8 Apr 2007 06:12:07 +0000 (06:12 +0000)
committeraland <aland>
Sun, 8 Apr 2007 06:12:07 +0000 (06:12 +0000)
1  2 
src/modules/rlm_eap/libeap/tls.c

@@@ -100,8 -95,11 +100,12 @@@ tls_session_t *eaptls_new_session(SSL_C
  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) {