From ad72f357ceba3f8210393d03cf29cfc3140db3ec Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Tue, 3 Dec 2024 21:54:35 -0500 Subject: [PATCH] Fix Windows regression in k5_make_uri_query() Commit d035119c3b2b402f3ad49a4c7b6264826ea923bb introduced an extra parameter to the function k5_make_uri_query(), but did not add that parameter to the Windows stub version of this function, causing a null pointer exception when this function was called. Add the parameter now. [ghudson@mit.edu: edited commit message] --- src/lib/krb5/os/dnssrv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/os/dnssrv.c b/src/lib/krb5/os/dnssrv.c index ffbbc85311..2eb6389889 100644 --- a/src/lib/krb5/os/dnssrv.c +++ b/src/lib/krb5/os/dnssrv.c @@ -110,7 +110,8 @@ place_srv_entry(struct srv_dns_entry **head, struct srv_dns_entry *new) krb5_error_code k5_make_uri_query(krb5_context context, const krb5_data *realm, - const char *service, struct srv_dns_entry **answers) + const char *service, const char *sitename, + struct srv_dns_entry **answers) { /* Windows does not currently support the URI record type or make it * possible to query for a record type it does not have support for. */ -- 2.47.2