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

2017-09-20 Thread Julien Fortin
looks like git-mail ate all the traceback lines starting with #, will re-submit v3 On Wed, Sep 20, 2017 at 6:16 PM, 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

[PATCH iproute2 v2] 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