From 7405675f7a055b5b41331bcfa289b95b9e0d96c3 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 16 Sep 2014 21:35:39 -0400 Subject: [PATCH] handle incorrect address --- HTTPServer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/HTTPServer.cpp b/HTTPServer.cpp index 62a995cb..4644f10d 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -726,6 +726,11 @@ namespace util } destination = *addr; } + else + { + SendReply ("Unexpected address " + address + "", 404); + return; + } } SendToDestination (destination, buf, len);