smbcomfindclose2.c 319 B

123456789101112
  1. #include "headers.h"
  2. SmbProcessResult
  3. smbcomfindclose2(SmbSession *s, SmbHeader *h, uchar *pdata, SmbBuffer *)
  4. {
  5. ushort sid;
  6. if (!smbcheckwordcount("comfindclose2", h, 1))
  7. return SmbProcessResultFormat;
  8. sid = smbnhgets(pdata);
  9. smbsearchclosebyid(s, sid);
  10. return smbbufferputack(s->response, h, &s->peerinfo);
  11. }