app-layer: ApplyTxConfigFn does not return bool

It does not return anything.
The only known implementation is in dns where it does not return.
And the C code does not bother to check a return value anyways.
pull/14639/head
Philippe Antoine 7 months ago committed by Victor Julien
parent cf7a56dd78
commit 327f45ceb3

@ -102,7 +102,7 @@ typedef struct AppLayerParserProtoCtx_
AppLayerStateData *(*GetStateData)(void *state);
AppLayerTxData *(*GetTxData)(void *tx);
bool (*ApplyTxConfig)(void *state, void *tx, int mode, AppLayerTxConfig);
void (*ApplyTxConfig)(void *state, void *tx, int mode, AppLayerTxConfig);
void (*SetStreamDepthFlag)(void *tx, uint8_t flags);
@ -610,7 +610,7 @@ void AppLayerParserRegisterStateDataFunc(
}
void AppLayerParserRegisterApplyTxConfigFunc(uint8_t ipproto, AppProto alproto,
bool (*ApplyTxConfig)(void *state, void *tx, int mode, AppLayerTxConfig))
void (*ApplyTxConfig)(void *state, void *tx, int mode, AppLayerTxConfig))
{
SCEnter();

@ -215,7 +215,7 @@ void AppLayerParserRegisterGetStateFuncs(uint8_t ipproto, AppProto alproto,
void AppLayerParserRegisterTxDataFunc(uint8_t ipproto, AppProto alproto,
AppLayerTxData *(*GetTxData)(void *tx));
void AppLayerParserRegisterApplyTxConfigFunc(uint8_t ipproto, AppProto alproto,
bool (*ApplyTxConfig)(void *state, void *tx, int mode, AppLayerTxConfig));
void (*ApplyTxConfig)(void *state, void *tx, int mode, AppLayerTxConfig));
void AppLayerParserRegisterStateDataFunc(
uint8_t ipproto, AppProto alproto, AppLayerStateData *(*GetStateData)(void *state));

@ -67,7 +67,7 @@ typedef struct AppLayerParser {
AppLayerStateData *(*GetStateData)(void *state);
AppLayerTxData *(*GetTxData)(void *tx);
bool (*ApplyTxConfig)(void *state, void *tx, int mode, AppLayerTxConfig);
void (*ApplyTxConfig)(void *state, void *tx, int mode, AppLayerTxConfig);
uint32_t flags;

Loading…
Cancel
Save