Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I guess this is OK, but I haven't ever done anything with the discovery code, so I don't know how it's supposed to work.
usr.sbin/ctld/discovery.c | ||
---|---|---|
164 | As Warner noted, pg_discovery_filter is an integer field that holds one of the PG_FILTER_* values (an enum in essence), while pg_discovery_auth_group is a pointer to a struct auth_group. This is a type mismatch comparing a pointer to an integer. Not sure why the compiler didn't complain about this earlier. Maybe if PG_FILTER_UNKNOWN is 0 then it gets treated as NULL. | |
166 | Here you can see the PG_FILTER_ values being compared against the integer field. | |
183 | Here you can see the pointer dereferenced. |