File fix-memory-corruption.patch of Package openwsman
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-openwsman-2.4.11/src/lib/wsman-libxml2-binding.c ./src/lib/wsman-libxml2-binding.c
--- ../orig-openwsman-2.4.11/src/lib/wsman-libxml2-binding.c 2014-07-25 17:08:56.000000000 +0200
+++ ./src/lib/wsman-libxml2-binding.c 2014-09-12 11:10:44.822691801 +0200
@@ -490,7 +490,7 @@
*/
if (xmlNs == NULL && strcmp(prefix,"xml") == 0
&& strcmp(uri, (const char *)XML_XML_NAMESPACE) == 0) {
- xmlNs = (xmlNsPtr) u_zalloc(sizeof(xmlNs));
+ xmlNs = (xmlNsPtr) u_zalloc(sizeof(*xmlNs));
if (xmlNs == NULL) {
error("Couldn't create a new Namespace structure");
return(NULL);