Pete Zaitcev wrote:
commit 9658fec1a097562c58195c968880e8f067fa0d5c
Author: Pete Zaitcev <zaitcev(a)yahoo.com>
Date: Wed Apr 6 23:24:16 2011 -0600
Match the ERROR tag properly in fs_rhevm_register.
backend.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backend.c b/backend.c
index 101f520..c63a0d5 100644
--- a/backend.c
+++ b/backend.c
@@ -1517,7 +1517,7 @@ fs_rhevm_register (my_state *ms, const provider_t *prov, const char
*next,
if (rc == MHD_HTTP_BAD_REQUEST)
rc = MHD_HTTP_OK;
}
- else if (strcmp(buf,"ERROR") == 0) {
+ else if (strncmp(buf,"ERROR",sizeof("ERROR")-1) == 0) {
DPRINTF("found err marker: %s\n",buf+sizeof("ERROR"));
sprintf(ami_id_buf,"failed %.56s",buf+sizeof("ERROR"));
rc = MHD_HTTP_INTERNAL_SERVER_ERROR;
ACK