mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 04:59:25 -07:00
fix: fixed a nil pointer dereference in the http banner grabber of syn.scan
This commit is contained in:
parent
23d8305e85
commit
1f3c009d15
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ func isTitleElement(n *html.Node) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func searchForTitle(n *html.Node) string {
|
func searchForTitle(n *html.Node) string {
|
||||||
if isTitleElement(n) {
|
if isTitleElement(n) && n.FirstChild != nil {
|
||||||
return n.FirstChild.Data
|
return n.FirstChild.Data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue