CVS commit by ossi:
compat wrapper: don't crash if neither host nor tunnel are specified.
fixes:
CCMAIL: [EMAIL PROTECTED]
M +4 -1 config.c 1.10
--- isync/src/compat/config.c #1.9:1.10
@@ -247,5 +247,5 @@ write_imap_server( FILE *fp, config_t *c
if (cfg->tunnel)
nfasprintf( (char **)&cfg->old_server_name, "tunnel%d",
++tunnels );
- else {
+ else if (cfg->host) {
if (sscanf( cfg->host, "%d.%d.%d.%d", &a1, &a2, &a3, &a4 ) == 4)
hl = nfsnprintf( buf, sizeof(buf), "%s", cfg->host );
@@ -271,4 +271,7 @@ write_imap_server( FILE *fp, config_t *c
cfg->old_servers = 1;
gotsrv: ;
+ } else {
+ fprintf( stderr, "ERROR: Neither host nor tunnel specified for
mailbox %s.\n", cfg->path );
+ exit( 1 );
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel