1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-08 16:23:49 +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:
Volker Lendecke
2007-12-19 16:48:04 +01:00
committed by Volker Lendecke
parent 93f3a1172a
commit 9ec4f91f35

View File

@@ -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++;