commit | d34adb2f9f0190398bf124e3c44384dd72094676 | [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 | 8ae35c160692b18ac701edea43cfac675ca18bec [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.