about summary refs log tree commit diff
path: root/sunrpc/xdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/xdr.c')
-rw-r--r--sunrpc/xdr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
index c36afd983c..969fa6ba04 100644
--- a/sunrpc/xdr.c
+++ b/sunrpc/xdr.c
@@ -575,6 +575,8 @@ xdr_string(xdrs, cpp, maxsize)
 		}
 		/* fall through... */
 	      case XDR_ENCODE:
+		if (sp == NULL)
+		  	return FALSE;
 		size = strlen(sp);
 		break;
 	}