summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2009-10-04 11:39:32 +0000
committerjsing <jsing@openbsd.org>2009-10-04 11:39:32 +0000
commit7e56314d91382553f15c4ded5fbef2c1d597aff6 (patch)
tree77beb84eaf23f7a9e7495cbb15613a6b7c4486d8 /usr.bin/netstat/main.c
parenttweak previous; ok kettenis (diff)
downloadwireguard-openbsd-7e56314d91382553f15c4ded5fbef2c1d597aff6.tar.xz
wireguard-openbsd-7e56314d91382553f15c4ded5fbef2c1d597aff6.zip
When IKE is operating in dynamic mode and no srcid is given, the hostname
is used as the srcid, however the srcid type is not specified. Rectify this by explicitly setting the srcid type to FQDN after successfully retrieving the hostname. This worked prior to the addition of IPV4_ADDR/IPV6_ADDR support since get_id_type() returned ID_FQDN even when presented with a null pointer. Issue reported by Mikolaj Kucharski.
Diffstat (limited to 'usr.bin/netstat/main.c')
0 files changed, 0 insertions, 0 deletions