pf: when extracting an IPv6 address, make sure we got an IPv6 address
commit97f7efa9e3316e4e8970a87a1ee53fd4fd0075d8
authorNick Mathewson <nickm@torproject.org>
Tue, 10 Sep 2019 15:07:25 +0000 (10 11:07 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 10 Sep 2019 15:07:25 +0000 (10 11:07 -0400)
tree452a8a39dba1beda29c5511db22321d5c252edaa
parent51475aee57523318d0b0a9e47dedad89ef1b578c
pf: when extracting an IPv6 address, make sure we got an IPv6 address

Our code assumes that when we're configured to get IPv6 addresses
out of a TRANS_PF transparent proxy connection, we actually will.
But we didn't check that, and so FreeBSD started warning us about a
potential NULL pointer dereference.

Fixes part of bug 31687; bugfix on 0.2.3.4-alpha when this code was
added.
changes/ticket31687_2 [new file with mode: 0644]
src/core/or/connection_edge.c