jbenet/go-multiaddr — pull request #11 by ebuchman (2014-11-03 19:43:20+00:00)
Title: avoid panic with better path len check

This panicked before if I did eg. `ipfs bootstrap add /ip4/someip` or `ipfs bootstrap add /ip4/someip/tcp/4001`. Basically if there wasn't a trailing slash or a proper multihash. The loop references two elements anyways, so this is the proper length check.