]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
uugh
authorMiek Gieben <miekg@NLnetLabs.nl>
Thu, 8 Sep 2005 12:55:21 +0000 (12:55 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Thu, 8 Sep 2005 12:55:21 +0000 (12:55 +0000)
str2host.c

index 9df36bdb75ab6909e0f3c8d24337a12e02c5f535..e9fa574041625567c9bd196492bbd46769df9fbe 100644 (file)
@@ -147,9 +147,7 @@ ldns_str2rdf_int8(ldns_rdf **rd, const char *bytestr)
 /*
  * No special care is taken, all dots are translated into
  * label seperators.
- * \todo make this more efficient...
- * we do 3 memcpy's in total...
- * label_chars2 is used for debugging. TODO: remove
+ * Could be made more efficient....we do 3 memcpy's in total...
  */
 ldns_status
 ldns_str2rdf_dname(ldns_rdf **d, const char *str)
@@ -188,7 +186,6 @@ ldns_str2rdf_dname(ldns_rdf **d, const char *str)
                *q = 0;
                switch (*s) {
                case '.':
-                       /* todo: check length (overflow und <1 */
                        if (label_len > LDNS_MAX_LABELLEN) {
                                return LDNS_STATUS_LABEL_OVERFLOW;
                        }