From: Philip Homburg Date: Tue, 8 Nov 2005 13:57:48 +0000 (+0000) Subject: Small fix for ioctls. X-Git-Tag: v3.1.2a~513 X-Git-Url: http://zhaoyanbai.com/repos/%22https:/www.google.com/jsapi/static/mdoc.3.html?a=commitdiff_plain;h=0f8090e65376f5b067f0117cac273c0b1ffa1d3b;p=minix.git Small fix for ioctls. --- diff --git a/servers/inet/sr.c b/servers/inet/sr.c index 393a351fd..ed26b7433 100644 --- a/servers/inet/sr.c +++ b/servers/inet/sr.c @@ -375,6 +375,8 @@ mq_t *m; (vir_bytes)m->mq_mess.NDEV_BUFFER); r= sr_put_userdata(sr_fd-sr_fd_table, r, NULL, 1); assert(r == OK); + assert(sr_fd->srf_flags & first_flag); + sr_fd->srf_flags &= ~first_flag; return OK; } @@ -386,6 +388,8 @@ mq_t *m; r= sr_put_userdata(sr_fd-sr_fd_table, EINVAL, NULL, 1); assert(r == OK); + assert(sr_fd->srf_flags & first_flag); + sr_fd->srf_flags &= ~first_flag; return OK; } r= (*sr_fd->srf_ioctl)(sr_fd->srf_fd, request);