Update copyright dates
[src/app-framework-binder.git] / src / afb-websock.c
index fdfca9d..df835d6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017, 2018 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
  * Author: José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -158,7 +158,9 @@ static void upgrade_to_websocket(
                        close_websocket(urh);
                }
        }
+#if MHD_VERSION <= 0x00095900
        afb_hreq_unref(memo->hreq);
+#endif
        free(memo);
 }