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.
1 file changed
tree: fc015954e3ff8df08e34754f1f009d7f5873b14d
  1. debian/
  2. hlrsync/
  3. linux-kernel/
  4. openbsc/
  5. wireshark/
  6. README