X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=tid%2Ftids.c;h=202c62a15589da0928596ee0eae06ee12b2bcbf8;hb=5e8a6048b40aa6cf9ade2bf3f1a6834947fda308;hp=13a13551af02b11ba455ae4e347d599212abd6ad;hpb=4c22757109698c07c9ecb095529e7adb45aa6c5e;p=trust_router.git diff --git a/tid/tids.c b/tid/tids.c index 13a1355..202c62a 100644 --- 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; }