From: Tobias Brunner Date: Tue, 26 Jun 2012 10:50:58 +0000 (+0200) Subject: Mask the configured mark value to ensure it is in range X-Git-Tag: 5.0.0~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f102c5f341dcbba552dcbc5323ed981e8679fe3a;p=thirdparty%2Fstrongswan.git Mask the configured mark value to ensure it is in range --- diff --git a/src/starter/confread.c b/src/starter/confread.c index 671cfbab15..cd011afa48 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; }