diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-06-26 12:50:58 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-06-26 12:50:58 +0200 |
commit | f102c5f341dcbba552dcbc5323ed981e8679fe3a (patch) | |
tree | 59f5714d9bee71a522552d5a7ff37558440b420b /src | |
parent | 66e12b926ec474fa025c920c455563c19ef6c260 (diff) | |
download | strongswan-f102c5f341dcbba552dcbc5323ed981e8679fe3a.tar.bz2 strongswan-f102c5f341dcbba552dcbc5323ed981e8679fe3a.tar.xz |
Mask the configured mark value to ensure it is in range
Diffstat (limited to 'src')
-rw-r--r-- | src/starter/confread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/starter/confread.c b/src/starter/confread.c index 671cfbab1..cd011afa4 100644 --- a/src/starter/confread.c +++ b/src/starter/confread.c @@ -449,6 +449,8 @@ static bool handle_mark(char *value, mark_t *mark) return FALSE; } } + /* apply the mask to ensure the value is in range */ + mark->value &= mark->mask; return TRUE; } |