File: smblib.c.patch

package info (click to toggle)
squid 2.4.6-2woody8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,724 kB
  • ctags: 9,570
  • sloc: ansic: 75,398; sh: 2,213; makefile: 1,839; perl: 1,099; awk: 35
file content (25 lines) | stat: -rw-r--r-- 750 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
7a8,9
>    (2000/02/11) Added some tricks to SMB_Logon_Server to control logons of users with illegal name
>                 Vadim A. Popov <vap@iilsr.minsk.by>
520c522
< 
---
>   
523a526,542
>     return(SMBlibE_BAD);
> 
>   }
> 
>   /* Check out the special case: illegal user reported as Action=0x01 ... */
> 
>   if (SVAL(SMB_Hdr(pkt), SMB_ssetpr_act_offset)&&0x01 != 0) {  /* Process error */
> 
> #ifdef DEBUG
>     fprintf(stderr, "SMB_SessSetupAndX failed with errorclass = %i, Error Code = %i\n",
> 	    CVAL(SMB_Hdr(pkt), SMB_hdr_rcls_offset),
> 	    SVAL(SMB_Hdr(pkt), SMB_hdr_err_offset));
> #endif
>   
>     SMBlib_SMB_Error = IVAL(SMB_Hdr(pkt), SMB_hdr_rcls_offset);
>     RFCNB_Free_Pkt(pkt);
>     SMBlib_errno = SMBlibE_GuestOnly;