Fix for bug #2834758: First NTLM signature check after startup fails
commit8deedcf1117ba6f4d1bc77beb37287a04a4d264b
authorStefan Becker <stefan.becker@nokia.com>
Tue, 12 Oct 2010 17:24:53 +0000 (12 20:24 +0300)
committerAnibal Avelar <aavelar@cofradia.org>
Mon, 25 Oct 2010 04:34:15 +0000 (24 23:34 -0500)
tree70f1fcd4a1c202b81c96b540482708a43dc2975e
parentd40ea14fa9ebfab477133524c24b16280250f12e
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.
(cherry picked from commit d556a06c159eabc787c0f754cccdfc8df8b93e5d)
src/core/sip-sec-ntlm.c