Messages in this thread | | | Date | Mon, 28 Jul 2014 17:19:00 -0700 (PDT) | Subject | Re: net: socket: NULL ptr deref in sendmsg | From | David Miller <> |
| |
From: Hannes Frederic Sowa <hannes@stressinduktion.org> Date: Sat, 26 Jul 2014 17:54:40 +0200
> On Sa, 2014-07-26 at 19:48 +0400, Andrey Ryabinin wrote: >> 2014-07-26 2:15 GMT+04:00 Hannes Frederic Sowa <hannes@stressinduktion.org>: >> > Otherwise I would just set msg_namelen = 0, too, and just not handle >> > passed in NULL pointers to sockaddrs. >> > >> >> I like that, how about such chage: ... > LGTM! Can you send a patch?
I definitely agree that we should treat NULL as no address specified.
| |