Project

General

Profile

Bug #12170

libsasl: use prev == NULL in _is_sun_reg()

Added by Toomas Soome 10 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Suggested in https://code.illumos.org/c/illumos-gate/+/292/1/usr/src/lib/libsasl/lib/common.c#1314

We start walking list with prev set to NULL, therefore we can use this fact to determine if we need to set new list head or to remove element from the middle of the list.

Also available in: Atom PDF