]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix -I '' to not send a client ID instead of a blank one, #116.
authorRoy Marples <roy@marples.name>
Fri, 26 Sep 2008 07:26:50 +0000 (07:26 +0000)
committerRoy Marples <roy@marples.name>
Fri, 26 Sep 2008 07:26:50 +0000 (07:26 +0000)
dhcpcd.c

index 0219b02fa784f6839f0616da4d8ca398a6594e2e..a438bfdba26af9443f7793a72913f393b9388b88 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -233,7 +233,7 @@ parse_string_hwaddr(char *sbuf, ssize_t slen, char *str, int clid)
        l = 0;
        /* If processing a string on the clientid, first byte should be
         * 0 to indicate a non hardware type */
-       if (clid) {
+       if (clid && *str) {
                *sbuf++ = 0;
                l++;
        }