From: <dg...@su...> - 2009-01-27 15:40:35
|
Author: bellmich Date: Tue Jan 27 16:39:11 2009 New Revision: 899 URL: http://libsyncml.opensync.org/changeset/899 Log: If an error reference is set once then this error reference cannot be used for other function calls. Modified: trunk/libsyncml/sml_manager.c Modified: trunk/libsyncml/sml_manager.c ============================================================================== --- trunk/libsyncml/sml_manager.c Tue Jan 27 16:28:34 2009 (r898) +++ trunk/libsyncml/sml_manager.c Tue Jan 27 16:39:11 2009 (r899) @@ -1231,8 +1231,6 @@ object->childCallback(session, cmd, object->commandCallbackUserdata); } else { - smlErrorSet(error, SML_ERROR_GENERIC, "Unable to find child command handler"); - SmlStatus *reply = smlCommandNewReply(cmd, SML_ERROR_NOT_FOUND, error); if (!reply) goto error; @@ -1244,6 +1242,8 @@ smlStatusUnref(reply); + smlErrorSet(error, SML_ERROR_GENERIC, "Unable to find child command handler"); + goto error; } |