return NULL;
}
state->conn = conn;
- SIVAL(state->buf, 4, 0x74697865);
+ SIVAL(state->buf, 4, SMB_SUICIDE_PACKET);
SCVAL(state->buf, 8, exitcode);
_smb_setlen_nbt(state->buf, sizeof(state->buf)-4);
#include "system/threads.h"
#include "lib/pthreadpool/pthreadpool_tevent.h"
#include "util_event.h"
+#include "libcli/smb/smbXcli_base.h"
/* Internal message queue for deferred opens. */
struct pending_message_list {
/* special magic for immediate exit */
if ((nread == 9) &&
- (IVAL(inbuf, 4) == 0x74697865) &&
+ (IVAL(inbuf, 4) == SMB_SUICIDE_PACKET) &&
lp_parm_bool(-1, "smbd", "suicide mode", false)) {
uint8_t exitcode = CVAL(inbuf, 8);
DEBUG(1, ("Exiting immediately with code %d\n",