dial: allow host==0 when net=="unix"

http://codereview.appspot.com/108042
This commit is contained in:
Fazlul Shahriar 2009-08-17 11:34:33 -04:00
parent 6d558e12b0
commit 5186b55afc

View file

@ -46,7 +46,7 @@ p9dial(char *addr, char *local, char *dummy2, int *dummy3)
free(buf);
return -1;
}
if(host == 0){
if(strcmp(net, "unix") != 0 && host == 0){
werrstr("invalid dial address 0.0.0.0 (aka *)");
free(buf);
return -1;