diff options
Diffstat (limited to 'source3/namepacket.c')
-rw-r--r-- | source3/namepacket.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/namepacket.c b/source3/namepacket.c index 38b8ed0653..5afdb8af0e 100644 --- a/source3/namepacket.c +++ b/source3/namepacket.c @@ -81,9 +81,10 @@ void initiate_netbios_packet(uint16 *id, bzero((char *)&p,sizeof(p)); - update_name_trn_id(); - - if (*id == 0xffff) *id = name_trn_id; /* allow resending with same id */ + if (*id == 0xffff) { + update_name_trn_id(); + *id = name_trn_id; /* allow resending with same id */ + } nmb->header.name_trn_id = *id; nmb->header.opcode = opcode; |