// Call process functions after the accept and check
try {
- srv->processDhcp4Query(pkt, fdp->ConsumeBool());
+ srv->processDhcp4Query(pkt, fdp.ConsumeBool());
} catch (const isc::Exception& e) {
// Silent exceptions
} catch (const std::exception&) {
//
// Developed by AdaLogics under contract to ISC.
-#ifndef HELPER_FUNC_H
-#define HELPER_FUNC_H
+#ifndef KEA_FUZZ_HELPER_FUNC_H
+#define KEA_FUZZ_HELPER_FUNC_H
-#include <string>
#include <cc/data.h>
+#include <string>
+
static const std::string JSON_CONFIG4 = R"CONFIG(
{
"Dhcp4":{
isc::data::ElementPtr parseJSON(const std::string& s);
}
-#endif // HELPER_FUNC_H
+#endif // KEA_FUZZ_HELPER_FUNC_H
int mysql_stmt_fetch(MYSQL_STMT* stmt) {
auto s = SS(stmt);
- if (!s || !s->has_rows){
+ if (!s || !s->has_rows) {
return MYSQL_NO_DATA;
}
if (s->fetch_index >= s->rows.size()) {