fix: fixed a nil pointer dereference in the http banner grabber of syn.scan

This commit is contained in:
evilsocket 2019-05-07 13:35:01 +02:00
commit 1f3c009d15
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -14,7 +14,7 @@ func isTitleElement(n *html.Node) bool {
}
func searchForTitle(n *html.Node) string {
if isTitleElement(n) {
if isTitleElement(n) && n.FirstChild != nil {
return n.FirstChild.Data
}