From: Chuck Lever Date: Fri, 16 Apr 2010 17:03:20 +0000 (-0400) Subject: libexport.a: export_find() should handle address parsing errors X-Git-Tag: nfs-utils-1-2-3-rc2~7 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=470448e77bd673b206cf40820f966dcb8f029f27;hp=470448e77bd673b206cf40820f966dcb8f029f27 libexport.a: export_find() should handle address parsing errors An address mask parsing error can cause client_init(), and therefore client_dup(), to make our process exit suddenly. Soon we want to add more complex address parsing in client_init(), so we need this interface to be a little more robust. Since export_find() can return NULL in some cases, it can handle NULL returns from its subroutines if an address parsing error occurs, or if memory is exhausted. Allow for client_dup() to return NULL instead of exiting sideways. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson ---