return -1;
}
+ if (request->reply->data_len > (MAX_PACKET_LEN - 100)) {
+ RWARN("Packet is large, and possibly truncated - %zd vs max %zd",
+ request->reply->data_len, MAX_PACKET_LEN);
+ }
+
return 0;
}
return -1;
}
+ if (request->reply->data_len > (MAX_PACKET_LEN - 100)) {
+ RWARN("Packet is large, and possibly truncated - %zd vs max %zd",
+ request->reply->data_len, MAX_PACKET_LEN);
+ }
+
return 0;
}
#endif
return -1;
}
+ if (request->proxy->data_len > (MAX_PACKET_LEN - 100)) {
+ RWARN("Packet is large, and possibly truncated - %zd vs max %zd",
+ request->proxy->data_len, MAX_PACKET_LEN);
+ }
+
return 0;
}
#endif
return -1;
}
+ if (request->reply->data_len > (MAX_PACKET_LEN - 100)) {
+ RWARN("Packet is large, and possibly truncated - %zd vs max %zd",
+ request->reply->data_len, MAX_PACKET_LEN);
+ }
+
if (rad_sign(request->reply, request->packet, request->client->secret) < 0) {
RERROR("Failed signing packet: %s", fr_strerror());
return -1;
}
+ if (request->proxy->data_len > (MAX_PACKET_LEN - 100)) {
+ RWARN("Packet is large, and possibly truncated - %zd vs max %zd",
+ request->proxy->data_len, MAX_PACKET_LEN);
+ }
+
if (rad_sign(request->proxy, NULL, request->home_server->secret) < 0) {
RERROR("Failed signing proxied packet: %s", fr_strerror());