OSSP CVS Repository

ossp - Difference in ossp-pkg/sa/sa_test.c versions 1.23 and 1.24
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sa/sa_test.c 1.23 -> 1.24

--- sa_test.c    2003/01/06 13:11:23     1.23
+++ sa_test.c    2003/01/31 18:34:06     1.24
@@ -187,8 +187,8 @@
         /* bind socket to local port */
         ex(SRV, sa_addr_create(&saa_srv));
         ex(SRV, sa_addr_u2a(saa_srv, "inet://127.0.0.1:12345#tcp"));
-        ex(SRV, sa_addr_destroy(saa_srv));
         ex(SRV, sa_bind(sa_srv, saa_srv));
+        ex(SRV, sa_addr_destroy(saa_srv));
 
         /* receive client connection */
         ex(SRV, sa_listen(sa_srv, 10));
@@ -229,8 +229,8 @@
         /* connect to server */
         ex(CLT, sa_addr_create(&saa_clt));
         ex(CLT, sa_addr_u2a(saa_clt, "inet://127.0.0.1:12345#tcp"));
-        ex(CLT, sa_addr_destroy(saa_clt));
         ex(CLT, sa_connect(sa_clt, saa_clt));
+        ex(CLT, sa_addr_destroy(saa_clt));
 
         /* communicate with server */
         ex(CLT, sa_readln(sa_clt, buf_clt, sizeof(buf_clt), &l));
@@ -281,8 +281,8 @@
         /* bind socket to local port */
         ex(SRV, sa_addr_create(&saa_srv));
         ex(SRV, sa_addr_u2a(saa_srv, "inet://127.0.0.1:12345#udp"));
-        ex(SRV, sa_addr_destroy(saa_srv));
         ex(SRV, sa_bind(sa_srv, saa_srv));
+        ex(SRV, sa_addr_destroy(saa_srv));
 
         /* communicate with client */
         ex(SRV, sa_recv(sa_srv, &saa_clt, buf_srv, sizeof(buf_srv), &l));

CVSTrac 2.0.1