diff --git a/src/zoscdump.c b/src/zoscdump.c index cc60a2ca3..a57976418 100644 --- a/src/zoscdump.c +++ b/src/zoscdump.c @@ -44,8 +44,11 @@ determine_socket( const char *bind) if (zrex_eq(rex, bind, "^(.+)://.*") ) { const char *transport = zrex_hit(rex, 1); + + if ( streq(transport, "ipc") ) + retsock = zsock_new_pull( bind ); #ifdef ZMQ_DGRAM - if ( streq(transport, "udp") ) + else if ( streq(transport, "udp") ) retsock = zsock_new_dgram(bind); #endif #ifdef ZMQ_STREAM @@ -56,9 +59,6 @@ determine_socket( const char *bind) } #endif - else if ( streq(transport, "ipc") ) - retsock = zsock_new_pull( bind ); - else zsys_error("Not a valid transport in %s", transport);