commit 526231bc223e81978f332e884357049442b380b9
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Wed Jul 2 08:47:36 2014 +0200

    initialize store_t::name
    
    the field is marked foreign (for the drivers), so a recycled store may
    contain an old pointer in it. that would make our error path crash.
    
    REFMAIL: CAF_KswU7aBS7unnK+rdZy1PG_8SZUAW=tcg75hixdlle0w3...@mail.gmail.com

 src/sync.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/sync.c b/src/sync.c
index 463b5f4..51c64a9 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -598,6 +598,7 @@ sync_boxes( store_t *ctx[], const char *names[], 
channel_conf_t *chan,
        svars->uidval[0] = svars->uidval[1] = -1;
        svars->srecadd = &svars->srecs;
 
+       ctx[0]->name = ctx[1]->name = 0;
        for (t = 0; t < 2; t++) {
                ctx[t]->orig_name =
                        (!names[t] || (ctx[t]->conf->map_inbox && !strcmp( 
ctx[t]->conf->map_inbox, names[t] ))) ?

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to