artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5433d80
)
Alter imsg_move() to clear the full imsg buffer instead of just the
author
claudio
<claudio@openbsd.org>
Tue, 7 Nov 2023 11:17:35 +0000
(11:17 +0000)
committer
claudio
<claudio@openbsd.org>
Tue, 7 Nov 2023 11:17:35 +0000
(11:17 +0000)
imsg->data field. This is needed for future imsg API changes.
OK tb@
usr.sbin/bgpd/rde_peer.c
patch
|
blob
|
history
diff --git
a/usr.sbin/bgpd/rde_peer.c
b/usr.sbin/bgpd/rde_peer.c
index
fe67303
..
d8a25bf
100644
(file)
--- a/
usr.sbin/bgpd/rde_peer.c
+++ b/
usr.sbin/bgpd/rde_peer.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rde_peer.c,v 1.3
3 2023/10/16 10:25:46
claudio Exp $ */
+/* $OpenBSD: rde_peer.c,v 1.3
4 2023/11/07 11:17:35
claudio Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
@@
-603,7
+603,7
@@
static void
imsg_move(struct imsg *dst, struct imsg *src)
{
*dst = *src;
- src->data = NULL; /* allocation was moved */
+ memset(src, 0, sizeof(*src));
}
/*