Skip to content
This repository was archived by the owner on Dec 11, 2017. It is now read-only.

Commit 41cc2c6

Browse files
committed
Merge pull request zeromq#53 from vperron/victor
Victor
2 parents d048d37 + f34d9f8 commit 41cc2c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

C/src/zre_interface.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ agent_recv_from_peer (agent_t *self)
487487
}
488488
// Ignore command if peer isn't ready
489489
if (peer == NULL || !zre_peer_ready (peer)) {
490+
free(identity);
490491
zre_msg_destroy (&msg);
491492
return 0;
492493
}

Java/src/main/java/org/zeromq/zyre/ZreInterface.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ protected static class Agent {
243243
return null;
244244

245245
ZreUdp udp = new ZreUdp (PING_PORT_NUMBER);
246-
int port = inbox.bindToRandomPort (String.format ("tcp://%s", udp.host ()), 0xc000, 0xffff);
246+
int port = inbox.bindToRandomPort ("tcp://*", 0xc000, 0xffff);
247247
if (port < 0) { // Interrupted
248248
System.err.println ("Failed to bind a random port");
249249
udp.destroy ();

0 commit comments

Comments
 (0)