Fix stupid bug.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 2 Nov 2005 02:26:35 +0000 (02:26 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 2 Nov 2005 02:26:35 +0000 (02:26 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@439 959494ce-11ee-0310-bf91-de5d638817bd

daemon/filenet.c

index 9e32dae..42fb165 100644 (file)
@@ -243,7 +243,7 @@ void fnetpeersetstr(struct fnetpeer *peer, wchar_t *id, wchar_t *value)
        datum = adddatum(peer->fn, id, FNPD_STR);
     di = difindoradd(peer, datum, &changed);
     if(di->data.str != NULL) {
        datum = adddatum(peer->fn, id, FNPD_STR);
     di = difindoradd(peer, datum, &changed);
     if(di->data.str != NULL) {
-       changed = (changed || !wcscmp(value, di->data.str));
+       changed = (changed || wcscmp(value, di->data.str));
        free(di->data.str);
     } else {
        changed = 1;
        free(di->data.str);
     } else {
        changed = 1;