diff options
Diffstat (limited to 'src/nu_lanman.c')
-rw-r--r-- | src/nu_lanman.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ | |||
1 | #include "nu_lanman.h" | 1 | #include "nu_lanman.h" |
2 | 2 | ||
3 | 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 }; | 3 | 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 }; |
4 | 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 }; | ||
4 | 5 | ||
5 | SMB_STATUS handle_LANMAN( SMB_HEADER *header, SMB_DATA *data, SMB_TRANSACTION_BYTES *bytes ) { | 6 | SMB_STATUS handle_LANMAN( SMB_HEADER *header, SMB_DATA *data, SMB_TRANSACTION_BYTES *bytes ) { |
6 | switch( GETNWORD( bytes->params ) ) { | 7 | switch( GETNWORD( bytes->params ) ) { |
@@ -12,7 +13,8 @@ SMB_STATUS handle_LANMAN( SMB_HEADER *header, SMB_DATA *data, SMB_TRANSACTION_BY | |||
12 | 13 | ||
13 | switch( GETNWORD(type)) { | 14 | switch( GETNWORD(type)) { |
14 | case 1: /* Medium set of information */ | 15 | case 1: /* Medium set of information */ |
15 | memcpy( bytes->params, LANMAN_NetShareGetInfo_1_bytes, sizeof( LANMAN_NetShareGetInfo_1_bytes )); /* possible buffer overflow */ | 16 | data->params = (SMB_PARAMS*)LANMAN_NetShareGetInfo_1_params; |
17 | data->bytes = (SMB_BYTES*) LANMAN_NetShareGetInfo_1_bytes; | ||
16 | break; | 18 | break; |
17 | default: /* Later */ | 19 | default: /* Later */ |
18 | return 0x00400002; | 20 | return 0x00400002; |