layer23/sap_interface.c: fix: properly call sap_msg_free()
commitcec6573cb56d3df4462c9f54b4043d5d880a173b
authorVadim Yanitskiy <axilirator@gmail.com>
Thu, 3 Jan 2019 17:56:42 +0000 (3 18:56 +0100)
committerHarald Welte <laforge@gnumonks.org>
Mon, 7 Jan 2019 15:39:52 +0000 (7 15:39 +0000)
tree967fa749dd8dc6835c38c9ced85f9144a8cbdf2e
parent5caa4ac9661db3e16275307a8baeb05613b574fc
layer23/sap_interface.c: fix: properly call sap_msg_free()

Passing NULL to sap_msg_free() is not only meaningless, but also
would result in NULL pointer dereference. We should call it in
successful case only, so let's fix this.

Change-Id: Icf868c4299e292a17c4b7aad1f9e728ea3653494
src/host/layer23/src/common/sap_interface.c