aboutsummaryrefslogtreecommitdiff
path: root/src/lib9
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9')
-rw-r--r--src/lib9/dial.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib9/dial.c b/src/lib9/dial.c
index 88dcf564..5550e9e1 100644
--- a/src/lib9/dial.c
+++ b/src/lib9/dial.c
@@ -46,6 +46,11 @@ p9dial(char *addr, char *local, char *dummy2, int *dummy3)
free(buf);
return -1;
}
+ if(host == 0){
+ werrstr("invalid dial address 0.0.0.0 (aka *)");
+ free(buf);
+ return -1;
+ }
if(strcmp(net, "tcp") == 0)
proto = SOCK_STREAM;