[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36863 - libmicrohttpd/src/testcurl/https
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36863 - libmicrohttpd/src/testcurl/https |
Date: |
Sat, 23 Jan 2016 14:08:27 +0100 |
Author: grothoff
Date: 2016-01-23 14:08:27 +0100 (Sat, 23 Jan 2016)
New Revision: 36863
Modified:
libmicrohttpd/src/testcurl/https/test_https_sni.c
Log:
-avoid theoretical issue with error_count overflowing depending on libcurl
errnos
Modified: libmicrohttpd/src/testcurl/https/test_https_sni.c
===================================================================
--- libmicrohttpd/src/testcurl/https/test_https_sni.c 2016-01-22 20:35:06 UTC
(rev 36862)
+++ libmicrohttpd/src/testcurl/https/test_https_sni.c 2016-01-23 13:08:27 UTC
(rev 36863)
@@ -1,6 +1,6 @@
/*
This file is part of libmicrohttpd
- Copyright (C) 2013 Christian Grothoff
+ Copyright (C) 2013, 2016 Christian Grothoff
libmicrohttpd is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -271,12 +271,14 @@
fprintf (stderr, MHD_E_SERVER_INIT);
return -1;
}
- error_count += do_get ("https://host1:4233/");
- error_count += do_get ("https://host2:4233/");
+ if (0 != do_get ("https://host1:4233/"))
+ error_count++;
+ if (0 != do_get ("https://host2:4233/"))
+ error_count++;
MHD_stop_daemon (d);
curl_global_cleanup ();
- return error_count != 0;
+ return (0 != error_count) ? 1 : 0;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36863 - libmicrohttpd/src/testcurl/https,
gnunet <=