mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
13 lines
692 B
Diff
13 lines
692 B
Diff
diff --git a/cldap_ping.c b/cldap_ping.c
|
|
index 9183b27..dc999d7 100644
|
|
--- a/cldap_ping.c
|
|
+++ b/cldap_ping.c
|
|
@@ -69,7 +69,7 @@ char *parse_ber_size(char *buf, size_t *tag_size) {
|
|
|
|
// simple wrapper over dn_expand which also calculates the new offset for the next compressed dn
|
|
int read_dns_string(char *buf, size_t buf_size, char *dest, size_t dest_size, size_t *offset) {
|
|
- int compressed_length = dn_expand((u_char *)buf, (u_char *)buf+buf_size, (u_char *)buf + *offset, dest, (int)dest_size);
|
|
+ int compressed_length = dn_expand((unsigned char *)buf, (unsigned char *)buf+buf_size, (unsigned char *)buf + *offset, dest, (int)dest_size);
|
|
if (compressed_length < 0) {
|
|
return -1;
|
|
}
|