tags 468284 + patch
thanks

When parsing the <command> tag that comes next, the parser is improperly
freeing the username. The following patch fixes this bug.

--- libopensync-plugin-gpe-0.36.orig/src/gpe_xml.c
+++ libopensync-plugin-gpe-0.36/src/gpe_xml.c
@@ -120,7 +120,6 @@
          if (!(env->use_local || env->use_ssh)) {
            osync_trace(TRACE_ERROR, "GPE-SYNC %s: <command> should only be
specified in <local> or <ssh> sections", __func__);
          }
-         g_free(env->username);
          xmlChar *str=xmlXPathCastToString(obj);
          env->command = g_strdup(str);
          xmlFree(str);


-- 
Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to