Skip to content

Issue with rigctl_server return value when receiving invalid commands #1701

@WaterBlock623

Description

@WaterBlock623

WARNING: Filling out the template below is NOT optional. Issues not filling out this template will be closed without review.

FIRST: Before reporting any bug, make sure that the bug you are reporting has not been reported before. Also, try to use the nightly version if possible in case I've already fixed the bug.

Hardware

  • CPU: AMD Ryzen 7 5800H
  • RAM: 64GB
  • GPU: NVIDIA GeForce RTX 3060 Laptop
  • SDR: None

Software

  • Operating System: Windows 10 x64
  • SDR++: v1.2.1 (Built at 05:11:16, Otc 9 2025)

Bug Description
According to the Hamlib Rigctld documentation, the 'x' in "RPRT x" returned by rigctld upon execution failure should be a negative number.

e.g.

// if number of arguments isn't correct, return error
if (parts.size() != 2) {
resp = "RPRT 1\n";
client->write(resp.size(), (uint8_t*)resp.c_str());
return;
}

Steps To Reproduce

  1. Send any invalid command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions