[iwhd] Free curl headers.
by Pete Zaitcev
commit c85ab3dc18b6d0c02adb18413352267f6db76d8d
Author: Pete Zaitcev <zaitcev(a)yahoo.com>
Date: Wed Apr 6 23:34:48 2011 -0600
Free curl headers.
This seems easy enough, because curl saves headers by value. Actually,
there is no leak, because we only run this once in a separate program,
but let's do the right thing in case we copy this code elsehwere.
dc-rhev-image.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/dc-rhev-image.c b/dc-rhev-image.c
index 02e6da8..872ce3b 100644
--- a/dc-rhev-image.c
+++ b/dc-rhev-image.c
@@ -898,6 +898,7 @@ static struct stor_dom *apistart(struct config *cfg)
sd->poolid = apipool(cfg, &connection, headers, pathdc, sd->uuid);
curl_easy_cleanup(connection.curl);
+ curl_slist_free_all(headers);
free(authhdr);
free(authraw);
13 years, 1 month
[iwhd] Update NEWS.
by Pete Zaitcev
commit e37c5ebe534b22b3e03355e9010fd2fcfb303dd5
Author: Pete Zaitcev <zaitcev(a)yahoo.com>
Date: Wed Apr 6 23:37:13 2011 -0600
Update NEWS.
NEWS | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 450acee..46b6948 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,10 @@ iwhd NEWS -*- outline -*-
Condor back-end
+** Bug fixes
+
+ RHEV-M registration did all the right things, but returned code 400.
+
* Noteworthy changes in release 0.92 (2011-03-15) [stable]
** New features
13 years, 1 month
[iwhd] maint: emit a proper diagnostic when MHD_start_daemon fails
by Jim Meyering
commit 26989a39ca515b641850b13dc9e29c364bfc78dd
Author: Jim Meyering <meyering(a)redhat.com>
Date: Wed Apr 6 12:01:08 2011 +0200
maint: emit a proper diagnostic when MHD_start_daemon fails
* rest.c (main): Use error, not fprintf to diagnose failure.
Include errno indicator.
Mark diagnostic as translatable, too.
rest.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/rest.c b/rest.c
index 25e9847..860ab1c 100644
--- a/rest.c
+++ b/rest.c
@@ -2405,10 +2405,8 @@ args_done:
my_port, NULL, NULL, &access_handler, &the_sem,
MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t)1048576,
MHD_OPTION_END);
- if (!the_daemon) {
- fprintf(stderr,"Could not create daemon.\n");
- return !0;
- }
+ if (!the_daemon)
+ error (EXIT_FAILURE, errno, _("failed to start daemon"));
sem_wait(&the_sem);
return 0;
13 years, 1 month