$OpenBSD: patch-src_registry_c,v 1.2 2008/03/15 10:35:54 ajacoutot Exp $ --- src/registry.c.orig Wed Jan 16 14:15:43 2008 +++ src/registry.c Wed Jan 16 14:17:38 2008 @@ -363,10 +363,13 @@ xmlrpc_dispatchCall(xmlrpc_env * const envP, if (!methodLookupEnv.fault_occurred) callNamedMethod(envP, methodInfoP, paramArrayP, resultPP); else if (methodLookupEnv.fault_code == XMLRPC_INDEX_ERROR) { - if (registryP->_default_method) + if (registryP->_default_method) { + xmlrpc_env_clean(envP); + xmlrpc_env_init(envP); callDefaultMethod(envP, registryP->_default_method, methodName, paramArrayP, resultPP); + } else { /* No matching method, and no default. */ xmlrpc_env_set_fault_formatted(