Commit a6a719cf a6a719cfbc2ffbc8995b9e338fd60b8ae2acdcab by Sam Roberts

The arg check I added was checking floating data instead of actual args,

serious error, fixed.
1 parent 508a2d28
......@@ -232,7 +232,7 @@ tcp_stream_create (stream_t * stream, const char* host, int port, int flags)
struct _tcp_instance *tcp;
int ret;
if (tcp->host == NULL || tcp->port < 1)
if (host == NULL || port < 1)
return EINVAL;
if ((tcp = malloc (sizeof (*tcp))) == NULL)
......