fix compile error.
CVE-2013-4002 backport upstream fix r1499506.
bz1140005(6.x) and bz1140004(6.3.x)