summaryrefslogtreecommitdiffhomepage
path: root/server/sockopt_stub.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-02-26 16:55:04 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2018-04-03 09:16:41 +0900
commita25522edddf05653bef26c5ff220f34f7354791f (patch)
treef45281d921e09ded119d3d48ff2774064e11ab4c /server/sockopt_stub.go
parent9697e9d29884608f5dd67af59f456b34317970c0 (diff)
packet/bgp: Return nil for invalid redirect IP address
When initializing IPv4AddressSpecificExtended or IPv6AddressSpecificExtended structure, nil value will be returned when an invalid IP address is given. But the redirect action extended community types; - RedirectIPv4AddressSpecificExtended - RedirectIPv6AddressSpecificExtended which embed IP address specific extended community types, are not aware of nil value when initializing, so these redirect action extended community can be unexpectedly initialized with nil value. This patch fixes to check return value of the embedded structure and also return nil when failure of initializing it. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'server/sockopt_stub.go')
0 files changed, 0 insertions, 0 deletions