X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/4d5dff7b4570cffaa3520f8d8ef8fd9f30be7524..f323e60831f4e1e3c35ae0ed5592e49eb485eeb6:/projects/stargazer/plugins/other/smux/handlers.cpp diff --git a/projects/stargazer/plugins/other/smux/handlers.cpp b/projects/stargazer/plugins/other/smux/handlers.cpp index 01878da6..ac179da9 100644 --- a/projects/stargazer/plugins/other/smux/handlers.cpp +++ b/projects/stargazer/plugins/other/smux/handlers.cpp @@ -44,15 +44,14 @@ bool SMUX::PDUsRequestHandler(const SMUX_PDUs_t * pdus) printfd(__FILE__, "SMUX::PDUsRequestHandler()\n"); asn_fprint(stderr, &asn_DEF_SMUX_PDUs, pdus); #endif -PDUsHandlers::iterator it; -it = pdusHandlers.find(pdus->choice.pdus.present); +PDUsHandlers::iterator it(pdusHandlers.find(pdus->choice.pdus.present)); if (it != pdusHandlers.end()) { return (this->*(it->second))(&pdus->choice.pdus); } +#ifdef SMUX_DEBUG else { -#ifdef SMUX_DEBUG switch (pdus->present) { case PDUs_PR_NOTHING: @@ -67,8 +66,8 @@ else default: printfd(__FILE__, "SMUX::PDUsRequestHandler() - undefined\n"); } -#endif } +#endif return true; }