Darren Reed wrote: > Location: inetd.c 302-327 > Type: T > Priority: 1 > Comment: first, will scf_instance_destroy(NULL) crash inetd? > scf_instance_destroy() just returns if argument is NULL. > The man page doesn't explicitly state this is ok, so one would > assume not. Additionally. rather than do line 321, put this at > 312 and make 320 just be "if (ret != 0)". > done > Location: inetd.c 336-347 > Type: T > Priority: 2 > Comment: Restructuring this function to eliminate the goto > appears easily possible, although it will require the use of "else". > done > Location: inetd.c 369-381 > Type: T > Priority: 2 > Comment: same as for lines 336-347. > done > Location: ipfd.c 407 > Type: T > Priority: 3 > Comment: Line is redundant with 401. > removed > Location: ipfd.c 508-533 > Type: T > Priority: 2 > Comment: Rather than do "if()-else", consider just putting > one of the conditions with the if() and have the other being > the default so that the lint hint at 533 can be removed. > done > Location: ipfd.c 539 > Type: T > Priority: 2 > Comment: boolean_t's should be initialised with either > B_FALSE or B_TRUE, not an integer. > nice catch
- [networking-discuss] [smf-discuss] C... Tony Nguyen
- [smf-discuss] Code review request - ... Tony Nguyen
- [smf-discuss] Code review request - Solaris host-based fir... David Bustos
- [smf-discuss] Code review request - Solaris host-base... Tony Nguyen
- [smf-discuss] Code review request - Solaris host-... David Bustos
- [smf-discuss] Code review request - Solaris h... Tony Nguyen
- [smf-discuss] Code review request - Solar... David Bustos
- [smf-discuss] Code review request - ... Tony Nguyen
- Code review request - Solaris host-based firewall (updated... Tony Nguyen
- Code review request - Solaris host-based firewall (up... Darren Reed
- [smf-discuss] Code review request - Solaris host-... Tony Nguyen
- [smf-discuss] Code review request - Solaris h... Darren Reed
- [smf-discuss] Code review request - Solar... Tony Nguyen
- [smf-discuss] Code review request - Solaris host-base... Tony Nguyen
- [smf-discuss] Code review request - Solaris host-... David Powell
- [smf-discuss] Code review request - Solaris h... Tony Nguyen
- [smf-discuss] Code review request - Solar... Tony Nguyen
- [smf-discuss] Code review request - ... David Powell
- [networking-discuss] [smf-discuss] C... Peter Memishian
- [networking-discuss] [smf-discuss] C... Tony Nguyen
- [networking-discuss] [smf-discuss] C... Sebastien Roy