diff options
Diffstat (limited to 'lib9p/srv.c')
-rw-r--r-- | lib9p/srv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c index 43994e1..df53940 100644 --- a/lib9p/srv.c +++ b/lib9p/srv.c @@ -194,10 +194,10 @@ static void respond_error(struct _lib9p_srv_req *req) { ssize_t r; struct lib9p_msg_Rerror host = { .tag = req->tag, - .ename = lib9p_strn(req->ctx.basectx.err_msg, + .errstr = lib9p_strn(req->ctx.basectx.err_msg, CONFIG_9P_MAX_ERR_SIZE), #if CONFIG_9P_ENABLE_9P2000_u - .errno = req->ctx.basectx.err_num, + .errnum = req->ctx.basectx.err_num, #endif }; @@ -205,8 +205,8 @@ static void respond_error(struct _lib9p_srv_req *req) { /* Truncate the error-string if necessary to avoid needing to * return LINUX_ERANGE. */ - if (((uint32_t)host.ename.len) + sess->rerror_overhead > sess->max_msg_size) - host.ename.len = sess->max_msg_size - sess->rerror_overhead; + if (((uint32_t)host.errstr.len) + sess->rerror_overhead > sess->max_msg_size) + host.errstr.len = sess->max_msg_size - sess->rerror_overhead; struct lib9p_Rmsg_send_buf net; |