Improved string handling on some more places

This commit is contained in:
Thomas Ries 2020-12-27 17:44:33 +01:00
parent 1c01f3ec29
commit 9d4c1ef172
2 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,8 @@
0.8.4dev
========
17-Sep-2020: - fix: buffer overflow in process_aclist if a
wrong syntax in config file was used for ACLs.
- Improved string handling on some more places.
0.8.3
=====
25-Aug-2020: - Released 0.8.3

View File

@ -48,7 +48,8 @@ static int _resolve(char *name, int class, int type,
* perform a SRV record lookup
*
* name name of service
* dname return
* proto IPPROTO_TCP / IPPROTO_UDP
* dname returned value
* dnamelen length of return buffer
* port port number of service
*/
@ -175,8 +176,8 @@ static int _resolve(char *name, int class, int type,
if( j < 0 ) {
break;
} else {
DEBUGC(DBCLASS_DNS, "_resolve: A[%i] - type SRV pr=%i, we=%i, "
"po=%i name=[%s]", i, pr, we, po, tmpname);
DEBUGC(DBCLASS_DNS, "_resolve: A[%i] - type SRV prio=%i, weight=%i, "
"port=%i name=[%s]", i, pr, we, po, tmpname);
if( !priority || pr < priority ||
(pr == priority && we > weight) ) {
priority = pr;