projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only reset seconds_till_retry when we activate the outgoing connection.
[tinc]
/
src
/
protocol.c
diff --git
a/src/protocol.c
b/src/protocol.c
index
bf54c6a
..
de93251
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.9
1 2001/05/25 11:54:28
guus Exp $
+ $Id: protocol.c,v 1.28.4.9
3 2001/06/08 18:02:10
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-214,6
+214,9
@@
cp
/* Copy string to cl */
/* Copy string to cl */
+ if(cl->name)
+ free(cl->name);
+
cl->name = xstrdup(name);
/* Load information about peer */
cl->name = xstrdup(name);
/* Load information about peer */
@@
-294,6
+297,8
@@
cp
if(debug_lvl >= DEBUG_CONNECTIONS)
syslog(LOG_NOTICE, _("Connection with %s (%s) activated"), cl->name, cl->hostname);
if(debug_lvl >= DEBUG_CONNECTIONS)
syslog(LOG_NOTICE, _("Connection with %s (%s) activated"), cl->name, cl->hostname);
+ if(cl->status.outgoing)
+ seconds_till_retry = 5; /* Reset retry timeout */
cp
/* Check some options */
cp
/* Check some options */