From: Ken Hornstein Date: Wed, 4 Dec 2024 02:54:35 +0000 (-0500) Subject: Fix Windows regression in k5_make_uri_query() X-Git-Tag: krb5-1.22-beta1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1399%2Fhead;p=thirdparty%2Fkrb5.git 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] --- 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. */