vcl: fix packetdrill test error 06/33006/2
authorwanghanlin <wanghanlin@corp.netease.com>
Tue, 6 Jul 2021 09:18:29 +0000 (17:18 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 6 Jul 2021 14:28:52 +0000 (14:28 +0000)
Type: fix

Signed-off-by: wanghanlin <wanghanlin@corp.netease.com>
Change-Id: I36d9affa5ee7160e95ee0ed463595bef752bbe9a

src/vcl/vppcom.c

index ddd5e0b..3847bf2 100644 (file)
@@ -1988,7 +1988,7 @@ vppcom_session_read_internal (uint32_t session_handle, void *buf, int n,
   u8 is_ct;
 
   if (PREDICT_FALSE (!buf))
-    return VPPCOM_EINVAL;
+    return VPPCOM_EFAULT;
 
   s = vcl_session_get_w_handle (wrk, session_handle);
   if (PREDICT_FALSE (!s || (s->flags & VCL_SESSION_F_IS_VEP)))