]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change out of memory return open session
authorBastian Dehn <hhaalo@arcor.de>
Thu, 16 Oct 2025 07:48:37 +0000 (09:48 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 16 Oct 2025 07:48:37 +0000 (09:48 +0200)
src/kds_s2000w_client.c

index bc369b7c8bdd4e34af044ad0453e7b81adeb8be3..5d263ec70818ece5ae27fdcdd57f05ac0d59e84a 100644 (file)
@@ -304,7 +304,7 @@ uint8_t kds_s2000w_client_open_session(response* resp)
        if (body == NULL) {
                _kds_s2000w_client_param_free(param);
                param = NULL;
-               return 1;
+               return CURLE_OUT_OF_MEMORY;
        }
 
        curl_easy_setopt(param->curl, CURLOPT_POST, 1L);