Fix for bug #2834758: First NTLM signature check after startup fails
commitd556a06c159eabc787c0f754cccdfc8df8b93e5d
authorStefan Becker <stefan.becker@nokia.com>
Tue, 12 Oct 2010 17:24:53 +0000 (12 20:24 +0300)
committerStefan Becker <stefan.becker@nokia.com>
Tue, 12 Oct 2010 17:24:53 +0000 (12 20:24 +0300)
tree2188a5f03d84d986d067b93197ba87aa445b509f
parentb67c71e85a000c2237c2cb9798a994bb73d57aca
Fix for bug #2834758: First NTLM signature check after startup fails

DOOOOOOOOOHHHHHHHHHHHHHH........................................

sip_sec_ntlm_gen_authenticate() used g_strndup() to make copies of binary keys.
If the key contains a zero byte it got truncated during the copy :-( No wonder
this error was so random....

Use g_memdup() instead.
src/core/sip-sec-ntlm.c