projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cf0e133
)
Be liberal in what you accept: allow unknown edges to be deleted.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 4 Nov 2001 23:29:50 +0000
(23:29 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 4 Nov 2001 23:29:50 +0000
(23:29 +0000)
src/protocol.c
patch
|
blob
|
history
diff --git
a/src/protocol.c
b/src/protocol.c
index
36de405
..
cbc311e
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.11
8 2001/11/03 21:22:02
guus Exp $
+ $Id: protocol.c,v 1.28.4.11
9 2001/11/04 23:29:50
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-1126,7
+1126,7
@@
cp
if(!from)
{
syslog(LOG_ERR, _("Got bad %s from %s (%s): %s"), "DEL_EDGE", c->name, c->hostname, _("unknown node"));
if(!from)
{
syslog(LOG_ERR, _("Got bad %s from %s (%s): %s"), "DEL_EDGE", c->name, c->hostname, _("unknown node"));
- return
-1
;
+ return
0
;
}
to = lookup_node(to_name);
}
to = lookup_node(to_name);
@@
-1134,7
+1134,7
@@
cp
if(!to)
{
syslog(LOG_ERR, _("Got bad %s from %s (%s): %s"), "DEL_EDGE", c->name, c->hostname, _("unknown node"));
if(!to)
{
syslog(LOG_ERR, _("Got bad %s from %s (%s): %s"), "DEL_EDGE", c->name, c->hostname, _("unknown node"));
- return
-1
;
+ return
0
;
}
/* Check if edge exists */
}
/* Check if edge exists */
@@
-1152,7
+1152,7
@@
cp
else
{
syslog(LOG_ERR, _("Got bad %s from %s (%s): %s"), "DEL_EDGE", c->name, c->hostname, _("unknown edge"));
else
{
syslog(LOG_ERR, _("Got bad %s from %s (%s): %s"), "DEL_EDGE", c->name, c->hostname, _("unknown edge"));
- return
-1
;
+ return
0
;
}
/* Tell the rest about the deleted edge */
}
/* Tell the rest about the deleted edge */