Fix format for the dst address in the STN trace 86/12386/2
authorMilan Lenco <milan.lenco@pantheon.tech>
Thu, 3 May 2018 15:31:46 +0000 (17:31 +0200)
committerNeale Ranns <nranns@cisco.com>
Fri, 4 May 2018 08:12:45 +0000 (08:12 +0000)
commitca07219df974d2d3d49cca37400924af848f2389
tree38f6f8df24ba02a199631d74fc602a678aebbf89
parent8b6b5ab7dba7cb5fe738c887e27c65bee6a2f600
Fix format for the dst address in the STN trace

Output string 's' was not assigned the return value of format() for
the destination address, which, in case the underlying memory was moved
by the realloc, resulted in an invalid memory access by the subsequent
invocations of format().

Change-Id: I2b5dfd85db085c553ca5ec0b3257aeeb437c360a
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
src/plugins/stn/stn.c