]> git.ipfire.org Git - pakfire.git/commitdiff
client: Actually set the auth refresh payload
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Jun 2025 13:05:59 +0000 (13:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Jun 2025 13:05:59 +0000 (13:05 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/client.c

index 2c3ba19f4b58936819ca2c21905393fd4bb657c0..89dfede1ca29176976e783599e846299905b471b 100644 (file)
@@ -178,6 +178,11 @@ static int pakfire_client_auth_refresh(struct pakfire_client* self) {
        if (r < 0)
                goto ERROR;
 
+       // Set the payload
+       r = pakfire_xfer_set_json_payload(xfer, request);
+       if (r < 0)
+               goto ERROR;
+
        // Set the callback
        r = pakfire_xfer_set_response_callback(xfer, pakfire_client_auth_response, self);
        if (r < 0)