The _xapian_validate_port() function was unnecessarily confusing -- switched from &&'s to ||'s to simplify it. Also, it was possible to set an invalid port by setting the invalid port first, then setting the database type from local to remote. This patch makes it so we always validate the port. It's no longer possible to set an invalid port.
(Note, this patch depends on this cleanup patch.)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | xapian.module.patch | 2.14 KB | jeremy |
| xapian.module.patch | 1.13 KB | jeremy |
Comments
Comment #1
jeremy commentedUpdate issue status to reflect that there's a patch attached.
Comment #2
jeremy commentedExpand patch to also simplify _xapian_validate_positive_integer() the same way.
Comment #3
singularoComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.