Re: [PATCH iproute2 v3] ip: ip_print: if no json obj is initialized default fp is stdout

2017-09-20 Thread Stephen Hemminger
On Wed, 20 Sep 2017 18:23:56 -0700 Julien Fortin wrote: > From: Julien Fortin > > The ip monitor didn't call `new_json_obj` (even for in non json context), > so the static FILE* _fp variable wasn't initialized, thus raising a > SIGSEGV in ipaddress.c. This patch should fix this issue for good,

[PATCH iproute2 v3] ip: ip_print: if no json obj is initialized default fp is stdout

2017-09-20 Thread Julien Fortin
From: Julien Fortin The ip monitor didn't call `new_json_obj` (even for in non json context), so the static FILE* _fp variable wasn't initialized, thus raising a SIGSEGV in ipaddress.c. This patch should fix this issue for good, new paths won't have to call `new_json_obj`. $ ip -t mon label link