Ticket #923: xmlformat-demarshal-sorted.patch

File xmlformat-demarshal-sorted.patch, 597 bytes (added by gebart, 3 years ago)

patch that cures the symptoms on version 0.38

  • formats/xmlformat.c

    diff -rNbU 4 libopensync-0.38/formats/xmlformat.c libopensync-0.38-kim/formats/xmlformat.c
    old new  
    108108                osync_trace(TRACE_ERROR, "%s: %s", __func__, osync_error_print(error)); 
    109109                return FALSE; 
    110110        } 
    111111 
     112        // Ugly fix for sorted xmlformat data passed in messages but forgetting that it's been sorted already 
     113        osync_xmlformat_sort(xmlformat); 
     114 
    112115        g_free(buffer); 
    113116 
    114117        *output = (char*)xmlformat; 
    115118        *outpsize = osync_xmlformat_size();