]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix Windows regression in k5_make_uri_query() 1399/head
authorKen Hornstein <kenh@cmf.nrl.navy.mil>
Wed, 4 Dec 2024 02:54:35 +0000 (21:54 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 5 Dec 2024 04:02:46 +0000 (23:02 -0500)
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

index ffbbc853110805e957d9463612d0b3dfdc86b5e9..2eb6389889f04afc6adb267b8cf8427f5753dd86 100644 (file)
@@ -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. */