X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol.c;h=50f6fe73050b269e712554f1e78a1f24929ab386;hb=075e6828a7533e7daa790225f17aa6bb39703278;hp=cae3a0fe93f218d19915e4a6ac0dd75b1588dbdd;hpb=fbf305c09d91bf34b1504b58d50392df2e6bcfba;p=tinc diff --git a/src/protocol.c b/src/protocol.c index cae3a0fe..50f6fe73 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -73,7 +73,7 @@ bool send_request(connection_t *c, const char *format, ...) { cp(); - /* Use vsnprintf instead of vasprintf: faster, no memory + /* Use vsnprintf instead of vxasprintf: faster, no memory fragmentation, cleanup is automatic, and there is a limit on the input buffer anyway */ @@ -196,7 +196,7 @@ bool seen_request(char *request) { ifdebug(SCARY_THINGS) logger(LOG_DEBUG, _("Already seen request")); return true; } else { - new = xmalloc(sizeof(*new)); + new = xmalloc(sizeof *new); new->request = xstrdup(request); new->firstseen = time(NULL); splay_insert(past_request_tree, new);