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:
@@ -678,7 +678,7 @@ static pAsyncQueue AQ_Create(const char* host, const char* port)
|
|||||||
self = (pAsyncQueue) FindCommandData(pServ->pSics, host, "AsyncQueue");
|
self = (pAsyncQueue) FindCommandData(pServ->pSics, host, "AsyncQueue");
|
||||||
|
|
||||||
/* try host and port */
|
/* try host and port */
|
||||||
if (self == NULL) {
|
if (self == NULL && port) {
|
||||||
int port_no = atoi(port);
|
int port_no = atoi(port);
|
||||||
if (port_no == 0) {
|
if (port_no == 0) {
|
||||||
struct servent *sp=NULL;
|
struct servent *sp=NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user