diff options
Diffstat (limited to 'source/namepacket.c')
-rw-r--r-- | source/namepacket.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/namepacket.c b/source/namepacket.c index 38b8ed06535..5afdb8af0ed 100644 --- a/source/namepacket.c +++ b/source/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; |