Skip to content

Commit

Permalink
Merge pull request #18532 from andresriancho/fix/EOF-error
Browse files Browse the repository at this point in the history
EOF error
  • Loading branch information
andresriancho committed Apr 29, 2020
2 parents 0ead996 + 8e82e19 commit fd00d3a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion w3af/core/data/url/handlers/keepalive/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from .utils import debug

from w3af.core.controllers.exceptions import HTTPRequestException
from w3af.core.data.url.openssl.ssl_wrapper import wrap_socket
from w3af.core.data.url.openssl_wrapper.ssl_wrapper import wrap_socket


class UniqueID(object):
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import socket
import select
import OpenSSL
from OpenSSL.SSL import SysCallError

from ndg.httpsclient.subj_alt_name import SubjectAltName
from pyasn1.codec.der.decoder import decode as der_decoder
Expand Down Expand Up @@ -122,7 +123,7 @@ def close(self):
def recv(self, *args, **kwargs):
try:
data = self.ssl_conn.recv(*args, **kwargs)
except OpenSSL.SSL.ZeroReturnError:
except (OpenSSL.SSL.ZeroReturnError, SysCallError):
# empty string signalling that the other side has closed the
# connection or that some kind of error happen and no more reads
# should be done on this socket
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import OpenSSL
import ssl

from w3af.core.data.url.openssl.ssl_wrapper import OpenSSLReformattedError
from w3af.core.data.url.openssl_wrapper.ssl_wrapper import OpenSSLReformattedError


class TestSSLError(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion w3af/plugins/audit/ssl_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from w3af.core.data.options.option_types import INPUT_FILE
from w3af.core.data.options.option_list import OptionList
from w3af.core.data.parsers.doc.url import URL
from w3af.core.data.url.openssl.ssl_wrapper import wrap_socket
from w3af.core.data.url.openssl_wrapper.ssl_wrapper import wrap_socket
from w3af.core.data.kb.info import Info
from w3af.core.data.kb.vuln import Vuln

Expand Down

0 comments on commit fd00d3a

Please sign in to comment.