The R Project SVN R

Rev

Rev 87180 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 87180 Rev 88599
Line 97... Line 97...
97
	    return FALSE;
97
	    return FALSE;
98
	}
98
	}
99
#endif
99
#endif
100
	free(con->description);
100
	free(con->description);
101
	size_t sz = strlen(buf) + 10;
101
	size_t sz = strlen(buf) + 10;
102
	con->description = (char *) malloc(sz); // FIXME check allocation 
102
	con->description = (char *) malloc(sz);
-
 
103
	if (!con->description)
-
 
104
	    error(_("allocation of socket connection failed"));
103
	snprintf(con->description, sz, "<-%s:%d", buf, this->port);
105
	snprintf(con->description, sz, "<-%s:%d", buf, this->port);
104
    } else {
106
    } else {
105
	sock = R_SockConnect(this->port, con->description, timeout);
107
	sock = R_SockConnect(this->port, con->description, timeout);
106
	if(sock < 0) {
108
	if(sock < 0) {
107
	    warning("%s:%d cannot be opened", con->description, this->port);
109
	    warning("%s:%d cannot be opened", con->description, this->port);