projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include COPYING.README in the distribution.
[tinc]
/
src
/
connection.c
diff --git
a/src/connection.c
b/src/connection.c
index
4d0b3a8
..
7f48697
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.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: connection.c,v 1.1.2.
5 2000/11/22 22:18:03
guus Exp $
+ $Id: connection.c,v 1.1.2.
6 2000/11/24 23:13:01
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-71,11
+71,8
@@
void init_connections(void)
connection_t *new_connection(void)
{
connection_t *new_connection(void)
{
- connection_t *p = (connection_t *)xmalloc(sizeof(*p));
+ connection_t *p = (connection_t *)xmalloc
_and_zero
(sizeof(*p));
cp
cp
- /* initialise all those stupid pointers at once */
- memset(p, '\0', sizeof(*p));
-
p->subnet_tree = new_rbltree((rbl_compare_t)subnet_compare, NULL);
cp
return p;
p->subnet_tree = new_rbltree((rbl_compare_t)subnet_compare, NULL);
cp
return p;