Frank Filz has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/458502
Change subject: Change string parsing in setup_client_saddr to allow more address formats
......................................................................
Change string parsing in setup_client_saddr to allow more address formats
By making a copy of the uaddr string, and truncating off the port
bytes, we can pass the remaining string to inet_pton directly and
it will parse more (all) of the formats allowd for uaddr strings.
Along the way, we also save potentially unsafe snprintf and skip
sscanf.
Change-Id: I00c64c52cd03cd73a16958681aef8c7c052a9be6
Signed-off-by: Frank S. Filz <ffilzlnx(a)mindspring.com>
---
M src/MainNFSD/nfs_rpc_callback.c
1 file changed, 43 insertions(+), 28 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/02/458502/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/458502
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I00c64c52cd03cd73a16958681aef8c7c052a9be6
Gerrit-Change-Number: 458502
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilzlnx(a)mindspring.com>
Gerrit-MessageType: newchange