diff options
author | Fazlul Shahriar <fshahriar@gmail.com> | 2009-08-17 11:34:33 -0400 |
---|---|---|
committer | Fazlul Shahriar <fshahriar@gmail.com> | 2009-08-17 11:34:33 -0400 |
commit | 5186b55afc97730b733a85cdcb38d6ee7fdd32c7 (patch) | |
tree | c97d5fdfde7440d59bf0cdcac6da62c91108e040 | |
parent | 6d558e12b04a468ec630d282265f033f54f6fa41 (diff) | |
download | plan9port-5186b55afc97730b733a85cdcb38d6ee7fdd32c7.tar.gz plan9port-5186b55afc97730b733a85cdcb38d6ee7fdd32c7.tar.bz2 plan9port-5186b55afc97730b733a85cdcb38d6ee7fdd32c7.zip |
dial: allow host==0 when net=="unix"
http://codereview.appspot.com/108042
-rw-r--r-- | src/lib9/dial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/dial.c b/src/lib9/dial.c index 5550e9e1..08cd99b6 100644 --- a/src/lib9/dial.c +++ b/src/lib9/dial.c @@ -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; |