ofir vainshtein has uploaded this change for review.
Replace assert with a check for empty client record value.
The assert on `len` could cause a crash if the client record value was empty. This change replaces the assert with a check that logs a critical error and returns NULL when `len` is 0, preventing a potential crash.
Change-Id: I8f60ca24db4e00417fd8fb921e0541bb73fd6dfa
Signed-off-by: Ofir Vainshtein <ofirvins@google.com>
---
M src/SAL/nfs4_clientid.c
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/46/1238446/1
To view, visit change 1238446. To unsubscribe, or for help writing mail filters, visit settings.