libeap: ignore TLS errors before any TLS calls
authorSam Hartman <hartmans@debian.org>
Tue, 26 Nov 2013 13:05:37 +0000 (08:05 -0500)
committerSam Hartman <hartmans@debian.org>
Tue, 26 Nov 2013 13:05:37 +0000 (08:05 -0500)
Ignore any errors that take place before the packet is started.

libeap/src/eap_peer/eap_tls_common.c

index 7bd50f6..8559c4d 100644 (file)
@@ -747,12 +747,8 @@ const u8 * eap_peer_tls_process_init(struct eap_sm *sm,
        size_t left;
        unsigned int tls_msg_len;
 
-       if (tls_get_errors(sm->ssl_ctx)) {
-               wpa_printf(MSG_INFO, "SSL: TLS errors detected");
-               ret->ignore = TRUE;
-               return NULL;
-       }
-
+       /* Ignore errors before we do anything*/
+       (void) tls_get_errors(sm->ssl_ctx);
        pos = eap_hdr_validate(EAP_VENDOR_IETF, eap_type, reqData, &left);
        if (pos == NULL) {
                ret->ignore = TRUE;