projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
30d2247
)
Don't send DEL_HOSTs when !status.meta
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 17 Aug 2001 18:14:04 +0000
(18:14 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 17 Aug 2001 18:14:04 +0000
(18:14 +0000)
src/net.c
patch
|
blob
|
history
src/protocol.c
patch
|
blob
|
history
diff --git
a/src/net.c
b/src/net.c
index
7403a42
..
507621a
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.c,v 1.35.4.12
7 2001/07/24 20:14:30
guus Exp $
+ $Id: net.c,v 1.35.4.12
8 2001/08/17 18:14:03
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-1370,7
+1370,7
@@
cp
if(FD_ISSET(p->meta_socket, f))
if(receive_meta(p) < 0)
{
if(FD_ISSET(p->meta_socket, f))
if(receive_meta(p) < 0)
{
- terminate_connection(p,
1
);
+ terminate_connection(p,
p->status.meta
);
return;
}
}
return;
}
}
diff --git
a/src/protocol.c
b/src/protocol.c
index
10046d1
..
7c9a3a8
100644
(file)
--- a/
src/protocol.c
+++ b/
src/protocol.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: protocol.c,v 1.28.4.10
3 2001/07/21 15:34:18
guus Exp $
+ $Id: protocol.c,v 1.28.4.10
4 2001/08/17 18:14:04
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-1006,7
+1006,7
@@
cp
cl->name, cl->hostname, strerror(err), errorstring);
}
cl->name, cl->hostname, strerror(err), errorstring);
}
- terminate_connection(cl,
1
);
+ terminate_connection(cl,
cl->status.meta
);
cp
return 0;
}
cp
return 0;
}
@@
-1020,7
+1020,7
@@
cp
int termreq_h(connection_t *cl)
{
cp
int termreq_h(connection_t *cl)
{
cp
- terminate_connection(cl,
1
);
+ terminate_connection(cl,
cl->status.meta
);
cp
return 0;
}
cp
return 0;
}