pfexec_call() error handling could be improved
Right now pfexec_call()'s default error is negative one. However, callers are expecting errnos or zero. In addition, there's another case where we're supposed to be checking the alignment of two different offsets, pfr_loff and pfr_ioff, but end up checking pfr_loff twice.
Updated by Electric Monk over 8 years ago
- Status changed from Pending RTI to Closed
commit b01b59e369b297df1b370a7ef94d2b9230d04452 Author: Robert Mustacchi <email@example.com> Date: 2015-04-17T17:10:38.000Z 5853 pfexec_call() error handling could be improved 5854 pfexecd should initialize pfexec response buffers Reviewed by: Jerry Jelinek <firstname.lastname@example.org> Reviewed by: Richard Lowe <email@example.com> Reviewed by: Dan McDonald <firstname.lastname@example.org> Reviewed by: Steven Williamson <email@example.com> Approved by: Garrett D'Amore <firstname.lastname@example.org>