Re: [LEDE-DEV] [PATCH mountd 2/4] fix crash if no uci config file present

2016-06-15 Thread John Crispin
On 15/06/2016 18:07, Conor O'Gorman wrote: > On 15/06/16 15:10, olivier.hardo...@gmail.com wrote: >> fix also possible null dereferenced pointers >> >> Signed-off-by: Olivier Hardouin >> --- >> uci.c | 6 ++ >> ucix.c | 9 - >> 2 files changed, 14 insertions(+), 1 deletion(-) >>

Re: [LEDE-DEV] [PATCH mountd 2/4] fix crash if no uci config file present

2016-06-15 Thread Conor O'Gorman
On 15/06/16 15:10, olivier.hardo...@gmail.com wrote: fix also possible null dereferenced pointers Signed-off-by: Olivier Hardouin --- uci.c | 6 ++ ucix.c | 9 - 2 files changed, 14 insertions(+), 1 deletion(-) The code design appears to be that uci_init() is called before any

[LEDE-DEV] [PATCH mountd 2/4] fix crash if no uci config file present

2016-06-15 Thread olivier . hardouin
fix also possible null dereferenced pointers Signed-off-by: Olivier Hardouin --- uci.c | 6 ++ ucix.c | 9 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/uci.c b/uci.c index f5aad02..46c3922 100644 --- a/uci.c +++ b/uci.c @@ -54,6 +54,9 @@ char* uci_get_option(str