commit | 8e9649c636709197410b4be4f8c88e9f840c5e93 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Mar 19 20:50:36 2013 +0100 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Apr 02 10:10:21 2013 +0200 |
tree | fc015954e3ff8df08e34754f1f009d7f5873b14d | |
parent | f89a7b6ec5b0d59c25550f514c94d7d6b48aa43a [diff] |
nat: Fix authentication by-pass using shorter tokens The token was compared with the configured one but only up to a user supplied length. Compare the token sizes and then use memcmp for the actual comparison to make sure to compare the right ammount of characters. There is no unit-test but there should be one.