From: Tollef Fog Heen Date: Mon, 19 Oct 2009 13:21:39 +0000 (+0200) Subject: Workaround for buggy libykclient X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d746e89a3bf3b9a4674ade30b88482d9f27463b;p=yubikey-server-c Workaround for buggy libykclient libykclient requires that parameters come in a particular order, contrary to what the spec says. Reorder parameters in order to not break it. --- diff --git a/src/main.c b/src/main.c index 6a44536..9cc0cd9 100644 --- a/src/main.c +++ b/src/main.c @@ -148,15 +148,15 @@ static int send_response(struct MHD_Connection *conn, if (signature) { t += sprintf(t, "h=%s\n", signature); } - if (status) { - t += sprintf(t, "status=%s\n", status); - } if (info) { t += sprintf(t, "info=%s\n", info); } if (timestamp) { t += sprintf(t, "timestamp=%s\n", timestamp); } + if (status) { + t += sprintf(t, "status=%s\n", status); + } /* XXX error checking above */ response = MHD_create_response_from_data(strlen(resp_text), resp_text,