isValidServer @brief Validates server name for non-local protocol. Replaces the original ugly macro. Now the function that calls isValidServer is responsible for returning NULL to its invoker in turn. It simply makes sure there's something in the string containing the server's name; otherwise it fills the status vector with an error. @param status @param server **/
| 53 | |
| 54 | **/ |
| 55 | static bool isValidServer(ISC_STATUS* status, const TEXT* server) |
| 56 | { |
| 57 | if (!server || !*server) |
| 58 | { |
| 59 | status[0] = isc_arg_gds; |
| 60 | status[1] = isc_bad_protocol; |
| 61 | status[2] = isc_arg_end; |
| 62 | return false; |
| 63 | } |
| 64 | return true; |
| 65 | } |
| 66 | |
| 67 | |
| 68 | /** |
no outgoing calls
no test coverage detected