projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Stricter checks for netname and node names.
[oweals/tinc.git]
/
src
/
protocol.c
diff --git
a/src/protocol.c
b/src/protocol.c
index 1c5b6cfd9c1d43dba0c6a2e21defabdb4c431209..1153d61fed56017f9ca07638cb869012b5959d7b 100644
(file)
--- a/
src/protocol.c
+++ b/
src/protocol.c
@@
-56,6
+56,9
@@
static char (*request_name[]) = {
static splay_tree_t *past_request_tree;
bool check_id(const char *id) {
+ if(!id || !*id)
+ return false;
+
for(; *id; id++)
if(!isalnum(*id) && *id != '_')
return false;