mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
more off-by-one safe_strcpy()
This commit is contained in:
parent
42b5514404
commit
d8d2d5e755
@ -167,7 +167,7 @@ static int reply_lanman2(char *inbuf, char *outbuf)
|
|||||||
static int negprot_spnego(char *p)
|
static int negprot_spnego(char *p)
|
||||||
{
|
{
|
||||||
DATA_BLOB blob;
|
DATA_BLOB blob;
|
||||||
uint8 guid[16];
|
uint8 guid[17];
|
||||||
const char *OIDs_krb5[] = {OID_KERBEROS5,
|
const char *OIDs_krb5[] = {OID_KERBEROS5,
|
||||||
OID_KERBEROS5_OLD,
|
OID_KERBEROS5_OLD,
|
||||||
OID_NTLMSSP,
|
OID_NTLMSSP,
|
||||||
@ -178,8 +178,8 @@ static int negprot_spnego(char *p)
|
|||||||
|
|
||||||
global_spnego_negotiated = True;
|
global_spnego_negotiated = True;
|
||||||
|
|
||||||
memset(guid, 0, 16);
|
ZERO_STRUCT(guid);
|
||||||
safe_strcpy((char *)guid, global_myname(), 16);
|
safe_strcpy((char *)guid, global_myname(), sizeof(guid)-1);
|
||||||
strlower((char *)guid);
|
strlower((char *)guid);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
Reference in New Issue
Block a user