From 0fe72492f14d484e7c761c50269d6e0db376b3c3 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Fri, 27 Feb 2004 03:58:04 +0000 Subject: Seems, like we don't really need LANMAN until now --- src/nu_lanman.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/nu_lanman.c') diff --git a/src/nu_lanman.c b/src/nu_lanman.c index 0ab935e..3d78b06 100644 --- a/src/nu_lanman.c +++ b/src/nu_lanman.c @@ -1,6 +1,7 @@ #include "nu_lanman.h" -BYTE LANMAN_NetShareGetInfo_1_bytes[] = { 20,0,'S','H','A','R','E',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; +BYTE LANMAN_NetShareGetInfo_1_params[] = { 10,6,0,20,0,0,0,6,0,55,0,0,0,20,0,61,0,0,0,0,0 }; +BYTE LANMAN_NetShareGetInfo_1_bytes[] = { 26,0,0,0,0,0,20,0,'S','H','A','R','E',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; SMB_STATUS handle_LANMAN( SMB_HEADER *header, SMB_DATA *data, SMB_TRANSACTION_BYTES *bytes ) { switch( GETNWORD( bytes->params ) ) { @@ -12,7 +13,8 @@ SMB_STATUS handle_LANMAN( SMB_HEADER *header, SMB_DATA *data, SMB_TRANSACTION_BY switch( GETNWORD(type)) { case 1: /* Medium set of information */ - memcpy( bytes->params, LANMAN_NetShareGetInfo_1_bytes, sizeof( LANMAN_NetShareGetInfo_1_bytes )); /* possible buffer overflow */ + data->params = (SMB_PARAMS*)LANMAN_NetShareGetInfo_1_params; + data->bytes = (SMB_BYTES*) LANMAN_NetShareGetInfo_1_bytes; break; default: /* Later */ return 0x00400002; -- cgit v1.2.3