]> git.decadent.org.uk Git - nfs-utils.git/commit
mountd: Handle memory exhaustion in mountlist_list()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 16 Sep 2010 17:51:51 +0000 (13:51 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 16 Sep 2010 18:33:51 +0000 (14:33 -0400)
commit76209cdbe989ee4cdfbf489f2695ac779457e763
treef8aa455371e4c16f82ced0a925706e3b540e3d1f
parenta8348c2c48d45f991995707fa22a2fa441aaa907
mountd: Handle memory exhaustion in mountlist_list()

I'm about to replace inet_aton(3)/gethostbyaddr(3) with
host_pton()/host_canonname() in mountlist_list().

Since host_canonname() returns a string allocated with strdup(3)
instead of xstrdup(), mountlist_list() must now deal with memory
exhaustion properly.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mountd/rmtab.c