do not use port if it was not supplied

r1970 | dcl | 2007-05-21 14:17:27 +1000 (Mon, 21 May 2007) | 2 lines
This commit is contained in:
Douglas Clowes
2007-05-21 14:17:27 +10:00
parent ef76d668bf
commit dbcdf0e38c

View File

@@ -678,7 +678,7 @@ static pAsyncQueue AQ_Create(const char* host, const char* port)
self = (pAsyncQueue) FindCommandData(pServ->pSics, host, "AsyncQueue");
/* try host and port */
if (self == NULL) {
if (self == NULL && port) {
int port_no = atoi(port);
if (port_no == 0) {
struct servent *sp=NULL;