service_rshell.c (snort-2.9.16.1) | : | service_rshell.c (snort-2.9.17) | ||
---|---|---|---|---|
skipping to change at line 92 | skipping to change at line 92 | |||
pp | pp | |||
}; | }; | |||
static tAppRegistryEntry appIdRegistry[] = {{APP_ID_SHELL, APPINFO_FLAG_SERVICE_ ADDITIONAL}}; | static tAppRegistryEntry appIdRegistry[] = {{APP_ID_SHELL, APPINFO_FLAG_SERVICE_ ADDITIONAL}}; | |||
static int16_t app_id = 0; | static int16_t app_id = 0; | |||
static int rshell_init(const InitServiceAPI * const init_api) | static int rshell_init(const InitServiceAPI * const init_api) | |||
{ | { | |||
unsigned i; | unsigned i; | |||
#ifdef TARGET_BASED | ||||
app_id = init_api->dpd->addProtocolReference("rsh-error"); | app_id = init_api->dpd->addProtocolReference("rsh-error"); | |||
#endif | ||||
for (i=0; i < sizeof(appIdRegistry)/sizeof(*appIdRegistry); i++) | for (i=0; i < sizeof(appIdRegistry)/sizeof(*appIdRegistry); i++) | |||
{ | { | |||
_dpd.debugMsg(DEBUG_LOG,"registering appId: %d\n",appIdRegistry[i].appId ); | _dpd.debugMsg(DEBUG_LOG,"registering appId: %d\n",appIdRegistry[i].appId ); | |||
init_api->RegisterAppId(&rshell_validate, appIdRegistry[i].appId, appIdR egistry[i].additionalInfo, init_api->pAppidConfig); | init_api->RegisterAppId(&rshell_validate, appIdRegistry[i].appId, appIdR egistry[i].additionalInfo, init_api->pAppidConfig); | |||
} | } | |||
return 0; | return 0; | |||
} | } | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added |