{
char * ptr;
ptr = XFetchBytes(GDK_DISPLAY(), nbytes);
- if (nbytes <= 0 && ptr != 0) {
+ if (*nbytes <= 0 && ptr != 0) {
XFree(ptr);
ptr = 0;
}
error = inst->back->init((void *)inst, &inst->backhandle,
&inst->cfg, inst->cfg.host, inst->cfg.port,
- &realhost, inst->cfg.tcp_nodelay);
+ &realhost, inst->cfg.tcp_nodelay,
+ inst->cfg.tcp_keepalives);
if (error) {
char *msg = dupprintf("Unable to open connection to %s:\n%s",