diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-05-01 12:22:34 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-05-01 12:22:34 +0000 |
commit | 010ca6958be666dd12b9b1d63ea129087bf1f892 (patch) | |
tree | 7a783698ccd473a7d8cd59151030db4be9d1294e /usr.sbin/ldpd/packet.c | |
parent | 9e197ff9cac64ddc01b685142b9a42b4058c70b8 (diff) |
split up a multiple assignment so we aren't casting an lvalue.
ok michele@ claudio@
Diffstat (limited to 'usr.sbin/ldpd/packet.c')
-rw-r--r-- | usr.sbin/ldpd/packet.c | 5 |
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); |