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 about 3 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 082e84855d5f07c088beac66080cad0b6e1dadc3 Author: Toomas Soome <firstname.lastname@example.org> 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 <email@example.com> Reviewed by: Norm Jacobs <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>