]> git.decadent.org.uk Git - nfs-utils.git/commit
Don't use initialized garbage for address lengths
authorSteve Dickson <steved@redhat.com>
Wed, 15 Jul 2009 10:21:54 +0000 (06:21 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 15 Jul 2009 10:21:54 +0000 (06:21 -0400)
commitb46dc42505da799a05a3a5e8f004b308f6b9eef7
treea12a39da61901986854695144f5defc4daad4417
parent906f0b27730b0506a24ed43029983b4d6819dd12
Don't use initialized garbage for address lengths

Make sure address lengths are initialized before
call calling nfs_extract_server_addresses() from
nfs_rewrite_pmap_mount_options(). Otherwise the
length check in nfs_string_to_sockaddr() can fail
since its will be using garbage from the stack.

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/stropts.c