MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / isValidServer

Function isValidServer

src/common/call_service.cpp:55–65  ·  view source on GitHub ↗

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 **/

Source from the content-addressed store, hash-verified

53
54 **/
55static 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/**

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected