Re: [PATCH v2] ofnet: Initialize structs in bootpath parser

2018-09-04 Thread Daniel Kiper
On Mon, Sep 03, 2018 at 10:09:15AM +0200, Julian Andres Klode wrote: > Code later on checks if variables inside the struct are > 0 to see if they have been set, like if there were addresses > in the bootpath. > > The variables were not initialized however, so the check > might succeed with uninitia

[PATCH v2] ofnet: Initialize structs in bootpath parser

2018-09-03 Thread Julian Andres Klode
Code later on checks if variables inside the struct are 0 to see if they have been set, like if there were addresses in the bootpath. The variables were not initialized however, so the check might succeed with uninitialized data, and a new interface with random addresses and the same name is added