projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 1.1
[tinc]
/
src
/
protocol.c
diff --git
a/src/protocol.c
b/src/protocol.c
index
cae3a0f
..
50f6fe7
100644
(file)
--- a/
src/protocol.c
+++ b/
src/protocol.c
@@
-73,7
+73,7
@@
bool send_request(connection_t *c, const char *format, ...) {
cp();
cp();
- /* Use vsnprintf instead of vasprintf: faster, no memory
+ /* Use vsnprintf instead of v
x
asprintf: faster, no memory
fragmentation, cleanup is automatic, and there is a limit on the
input buffer anyway */
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 {
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);
new->request = xstrdup(request);
new->firstseen = time(NULL);
splay_insert(past_request_tree, new);