]> git.puffer.fish Git - mirror/frr.git/commit
lib/trivial: str2prefix checks return of inet_pton in fragile way
authorPaul Jakma <paul@quagga.net>
Sat, 8 Aug 2009 19:41:39 +0000 (20:41 +0100)
committerPaul Jakma <paul@quagga.net>
Fri, 28 Aug 2009 13:51:49 +0000 (14:51 +0100)
commitc4cf095e95ae66c1a7b87bca95e61e50fec746ee
tree368c8688e2bbe6cdffa46c28d4480c1496449f48
parentfab7f89dcfe77cf06806e7f8a33314d3b4857a69
lib/trivial: str2prefix checks return of inet_pton in fragile way

* prefix.c: (str2prefix_ipv6) inet_pton succesful return is presumed to be
  1, rather than the "not zero" the man page describes - seemed fragile.
lib/prefix.c