projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Initialize tid response structure
[trust_router.git]
/
tid
/
tids.c
diff --git
a/tid/tids.c
b/tid/tids.c
index
13a1355
..
202c62a
100644
(file)
--- a/
tid/tids.c
+++ b/
tid/tids.c
@@
-209,7
+209,7
@@
static void tids_handle_connection (TIDS_INSTANCE *tids, int conn)
}
/* Allocate a response structure and populate common fields */
- if ((NULL == (resp =
malloc(sizeof(TID_RESP)
)))) {
+ if ((NULL == (resp =
calloc(sizeof(TID_RESP), 1
)))) {
fprintf(stderr, "Error allocating response structure.\n");
return;
}