adapt 3.2.x patch for CVE-2014-0081