mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 04:25:15 +00:00
Change cstringSanityCheck from being a method of Port to a static
function.
This commit is contained in:
parent
07dae5d498
commit
1a37d25650
2 changed files with 2 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue