• Jérome Perrin's avatar
    x509: gracefully handle ENOMEM when running openssl · 2b0d5043
    Jérome Perrin authored
    prevent this kind of errors when running openssl fail:
    
    ```
    10-12-2018 19:04:02 ERROR     AttributeError: 'NoneType' object has no attribute 'splitlines'
    Traceback (most recent call last):
      File "/opt/re6st/eggs/re6stnet-0.513-py2.7.egg/re6st/cli/node.py", line 428, in main
        s(*args)
      File "/opt/re6st/eggs/re6stnet-0.513-py2.7.egg/re6st/utils.py", line 191, in select
        R[r]()
      File "/opt/re6st/eggs/re6stnet-0.513-py2.7.egg/re6st/tunnel.py", line 399, in handlePeerEvent
        True, crypto.FILETYPE_ASN1)
      File "/opt/re6st/eggs/re6stnet-0.513-py2.7.egg/re6st/x509.py", line 136, in loadVerify
        for x in err.splitlines():
    ```
    
    /reviewed-on nexedi/re6stnet!6
    2b0d5043
x509.py 8.65 KB