morian / certmonger

Forked from certmonger 2 years ago
Clone

0eec70b Add NULL checks before string compares when analyzing a cert

Authored and Committed by rcritten 2 years ago
1 file changed. 2 lines added. 2 lines removed.
    Add NULL checks before string compares when analyzing a cert
    
    A user reported a segfault which was due to a broken request.
    How it got broken I have no idea but it was effectively empty.
    
    It had everything as defaults: 0, -1, UNSPECIFIED or not
    present at all.
    
    So when trying to analyze the request it did a NULL compare.
    
    https://pagure.io/certmonger/issue/191
    
        
file modified
+2 -2