]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Style accident
authorWillem Toorop <willem@nlnetlabs.nl>
Wed, 2 Oct 2013 14:48:22 +0000 (16:48 +0200)
committerWillem Toorop <willem@nlnetlabs.nl>
Wed, 2 Oct 2013 14:48:22 +0000 (16:48 +0200)
rdata.c

diff --git a/rdata.c b/rdata.c
index 64004031225e8697573e7e9cdc5d1c85a81de0b7..6493543f0a28fddf6312e27a8054f7fdf5e11793 100644 (file)
--- a/rdata.c
+++ b/rdata.c
@@ -528,12 +528,9 @@ ldns_rdf_hip_get_alg_hit_pk(ldns_rdf *rdf, uint8_t* alg,
 
        if (! rdf || ! alg || ! hit || ! hit_size || ! pk || ! pk_size) {
                return LDNS_STATUS_INVALID_POINTER;
-
        } else if (ldns_rdf_get_type(rdf) != LDNS_RDF_TYPE_HIP) {
                return LDNS_STATUS_INVALID_RDF_TYPE;
-
-       }
-               else if ((rdf_size = ldns_rdf_size(rdf)) < 6) {
+       } else if ((rdf_size = ldns_rdf_size(rdf)) < 6) {
                return LDNS_STATUS_WIRE_RDATA_ERR;
        }
        data = ldns_rdf_data(rdf);