]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP: Avoid NULL use with snprintf string
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 3 Apr 2019 15:17:16 +0000 (18:17 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 6 Apr 2019 15:49:26 +0000 (18:49 +0300)
commit6bb9d9a8db899278032eac6e7df7d7b999a9956e
tree4b006c2b90d47de8674edefc7a797b6d92e42b03
parentf6b5b6bb4f72977ab233e0b1716cade4caf512ab
AP: Avoid NULL use with snprintf string

identity_buf may be NULL here. Handle this case explicitly by printing
"N/A" instead relying on snprintf converting this to "(null)" or some
other value based on unexpected NULL pointer.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
src/ap/ieee802_1x.c