mirror of
https://github.com/nmap/nmap.git
synced 2026-01-20 05:09:02 +00:00
Change cstringSanityCheck from being a method of Port to a static
function.
This commit is contained in:
@@ -300,9 +300,8 @@ int Port::getServiceDeductions(struct serviceDeductions *sd) {
|
||||
// one is available and the user should submit it. tunnel must be
|
||||
// SERVICE_TUNNEL_NULL (normal) or SERVICE_TUNNEL_SSL (means ssl was
|
||||
// detected and we tried to tunnel through it ).
|
||||
|
||||
char* Port::cstringSanityCheck(const char* string, int len) {
|
||||
char* result;
|
||||
static char *cstringSanityCheck(const char* string, int len) {
|
||||
char *result;
|
||||
int slen;
|
||||
|
||||
if(!string)
|
||||
|
||||
@@ -199,8 +199,6 @@ class Port {
|
||||
const char *ostype, const char *devicetype,
|
||||
const char *extrainfo, const char *fingerprint);
|
||||
|
||||
char* cstringSanityCheck(const char* string, int len);
|
||||
|
||||
/* Sets the results of an RPC scan. if rpc_status is not
|
||||
RPC_STATUS_GOOD_PROGRAM, pass 0 for the other args. This function
|
||||
takes care of setting the port's service and version
|
||||
|
||||
Reference in New Issue
Block a user