libipp-listener: strtok() can return NULL and we do leak open file
lib - userland libraries
We need to check the strtok() return value. Also drop #ifndef linux around that code.
This issue was pointed by Gergő Mihály Doma while reviewing: https://illumos.org/rb/r/1955/
Updated by Electric Monk 4 months ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 082e84855d5f07c088beac66080cad0b6e1dadc3 Author: Toomas Soome <email@example.com> Date: 2019-06-27T20:12:09.000Z 11270 libipp-listener: strtok() can return NULL and we do leak open file Reviewed by: Gergő Mihály Doma <firstname.lastname@example.org> Reviewed by: Norm Jacobs <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>