mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-30 16:13:51 +00:00
Reinforced null termination of string when appending IP to @ in
resolution.
This commit is contained in:
parent
e1b34d40d7
commit
1c9f7dff12
1
client.c
1
client.c
@ -287,6 +287,7 @@ int fixResponses(struct response_set *responses)
|
||||
rr->response=(unsigned char *)new;
|
||||
rr->value_len+=alen;
|
||||
rr->value_bytes+=alen;
|
||||
new[rr->value_len]=0; /* Make sure it is null terminated */
|
||||
if (debug>1) fprintf(stderr,"Response string now '%s'\n",rr->response);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user