mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Use correct size (17 not 16) when doing a push_ascii(). Ensure that
wins hook is called with unix charset.
Jeremy.
(This used to be commit ecb8057387
)
This commit is contained in:
parent
eff91556a3
commit
5dfeda0002
@ -823,7 +823,7 @@ static int build_dgram(char *buf,struct packet_struct *p)
|
||||
void make_nmb_name( struct nmb_name *n, const char *name, int type)
|
||||
{
|
||||
memset( (char *)n, '\0', sizeof(struct nmb_name) );
|
||||
push_ascii(n->name, name, 16, STR_TERMINATE|STR_UPPER);
|
||||
push_ascii(n->name, name, sizeof(n->name), STR_TERMINATE|STR_UPPER);
|
||||
n->name_type = (unsigned int)type & 0xFF;
|
||||
StrnCpy( n->scope, global_scope(), 63 );
|
||||
strupper_m( n->scope );
|
||||
|
@ -120,7 +120,7 @@ static void wins_hook(const char *operation, struct name_record *namerec, int tt
|
||||
p += slprintf(p, sizeof(command)-1, "%s %s %s %02x %d",
|
||||
cmd,
|
||||
operation,
|
||||
namerec->name.name,
|
||||
nmb_namestr(&namerec->name),
|
||||
namerec->name.name_type,
|
||||
ttl);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user