stf: shared buffer prints wrong address

(cherry picked from commit 0d50c7e789)
(cherry picked from commit 698cc4aec3)
This commit is contained in:
Franco Fichtner 2018-09-08 14:15:53 +02:00
parent 08e10b5915
commit 70d2e03432

View file

@ -74,8 +74,9 @@ stf_status(int s)
if (do_cmd(s, STF_GV4NET, &param, sizeof(param), 0) < 0)
return;
printf("\tv4net %s/%d -> tv4br %s\n", inet_ntoa(param.inaddr),
param.prefix, inet_ntoa(param.dstv4_addr));
/* inet_ntoa() uses a shared buffer */
printf("\tv4net %s/%d ", inet_ntoa(param.inaddr), param.prefix);
printf("-> tv4br %s\n", inet_ntoa(param.dstv4_addr));
}
static void