1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-03 01:17:45 +03:00

Merge pull request #1868 from teg/ndisc-fix

sd-ndisc: add missing parens
This commit is contained in:
Lennart Poettering 2015-11-12 20:27:51 +01:00
commit b0bcf47221

View File

@ -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: