shithub: riscv

ref: a895a7593c66b53400d47bf9bfc671de2f7b73cb
dir: /sys/src/cmd/aquarela/smbcomfindclose2.c/

View raw version
#include "headers.h"

SmbProcessResult
smbcomfindclose2(SmbSession *s, SmbHeader *h, uchar *pdata, SmbBuffer *)
{
	ushort sid;
	if (!smbcheckwordcount("comfindclose2", h, 1))
		return SmbProcessResultFormat;
	sid = smbnhgets(pdata);
	smbsearchclosebyid(s, sid);
	return smbbufferputack(s->response, h, &s->peerinfo);
}