summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-12 20:27:51 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-12 20:27:51 +0100
commitb0bcf47221335e03471946eae58c5e7e05e3a0c8 (patch)
treec15188c8d95094b08c9747246aa868887b6cdd5a
parentf1637bd3a81fe0468b53d7aa91b44cc0c34410d7 (diff)
parent133dd71fdd25152905d427e0812c05534f83f2b7 (diff)
Merge pull request #1868 from teg/ndisc-fix
sd-ndisc: add missing parens
-rw-r--r--src/libsystemd-network/sd-ndisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-ndisc.c b/src/libsystemd-network/sd-ndisc.c
index f35b3a33b8..0881973e7f 100644
--- a/src/libsystemd-network/sd-ndisc.c
+++ b/src/libsystemd-network/sd-ndisc.c
@@ -519,7 +519,7 @@ static int ndisc_router_advertisment_recv(sd_event_source *s, int fd, uint32_t r
nd->state = NDISC_STATE_ADVERTISMENT_LISTEN;
stateful = ra->nd_ra_flags_reserved & (ND_RA_FLAG_MANAGED | ND_RA_FLAG_OTHER);
- pref = ra->nd_ra_flags_reserved & ND_RA_FLAG_PREF >> 3;
+ pref = (ra->nd_ra_flags_reserved & ND_RA_FLAG_PREF) >> 3;
switch (pref) {
case ND_RA_FLAG_PREF_LOW: