mirror of
https://github.com/samba-team/samba.git
synced 2025-11-09 20:23:51 +03:00
Zero the tdb key, there might be padding
This leads to uninitialized variable warnings if nmbd is run under valgrind.
This commit is contained in:
committed by
Volker Lendecke
parent
93f3a1172a
commit
9ec4f91f35
@@ -63,6 +63,8 @@ void unexpected_packet(struct packet_struct *p)
|
||||
|
||||
len = build_packet(&buf[6], sizeof(buf)-6, p) + 6;
|
||||
|
||||
ZERO_STRUCT(key); /* needed for potential alignment */
|
||||
|
||||
key.packet_type = p->packet_type;
|
||||
key.timestamp = p->timestamp;
|
||||
key.count = count++;
|
||||
|
||||
Reference in New Issue
Block a user