summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ldpd/packet.c')
-rw-r--r--usr.sbin/ldpd/packet.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/packet.c b/usr.sbin/ldpd/packet.c
index d87bf6a7fdf..c6dafe327fe 100644
--- a/usr.sbin/ldpd/packet.c
+++ b/usr.sbin/ldpd/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.9 2010/04/29 12:09:28 claudio Exp $ */
+/* $OpenBSD: packet.c,v 1.10 2010/05/01 12:22:33 jsg Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -324,7 +324,8 @@ session_read(int fd, short event, void *arg)
nbr->rbuf->wpos += n;
while ((len = session_get_pdu(nbr->rbuf, &buf)) > 0) {
- ldp_hdr = (struct ldp_hdr *)pdu = buf;
+ pdu = buf;
+ ldp_hdr = (struct ldp_hdr *)pdu;
if (ntohs(ldp_hdr->version) != LDP_VERSION) {
session_shutdown(nbr, S_BAD_PROTO_VER, 0, 0);
free(buf);