]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/search.c
ITS#7027 Implement priority/weight for DNS SRV records
[openldap] / libraries / libldap / search.c
index 3867b5b20a5b57f07d63a14f27aab00d61a0b215..485a170b2d397d8f783bf55669a73ce2cdbc43fe 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2013 The OpenLDAP Foundation.
+ * Copyright 1998-2014 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -305,7 +305,7 @@ ldap_build_search_req(
        LDAP_NEXT_MSGID( ld, *idp );
 #ifdef LDAP_CONNECTIONLESS
        if ( LDAP_IS_UDP(ld) ) {
-               struct sockaddr sa = {0};
+               struct sockaddr_storage sa = {0};
                /* dummy, filled with ldo_peer in request.c */
            err = ber_write( ber, (char *) &sa, sizeof( sa ), 0 );
        }