capture_ifinfo: Don't try to write to an invalid address.
authorGerald Combs <gerald@wireshark.org>
Thu, 26 Apr 2018 23:55:21 +0000 (16:55 -0700)
committerGerald Combs <gerald@wireshark.org>
Fri, 27 Apr 2018 01:23:01 +0000 (01:23 +0000)
commitf73233d261d6ded962a78376d8b9b13365e4d9d1
treedcccbd15bba8d0ff6dc0ca9c68cda70493cb72be
parent0ad423924992f8504b3e75980e1e9efb65d84214
capture_ifinfo: Don't try to write to an invalid address.

Make sure err_str is valid before trying to assign a value.

Change-Id: I4e6524b93101ef28158996797e8462168e44dc2a
Reviewed-on: https://code.wireshark.org/review/27173
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
capchild/capture_ifinfo.c