Skip to content

Commit

Permalink
fix: atdirectory null check
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierChanth committed Jan 14, 2025
1 parent 3ad2d92 commit eab6d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/atclient/src/atdirectory.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int atdirectory_lookup(struct atdirectory_connection *conn, const char *atsign,
len--;
}

if (len == 5 && strncmp((char *)buf, "null", 4) == 0) {
if (len == 4 && strncmp((char *)buf, "null", 4) == 0) {
*atserver_host = NULL;
*atserver_port = 0;
free(read_buf);
Expand Down

0 comments on commit eab6d14

Please # to comment.