summaryrefslogtreecommitdiffstats
path: root/if-options.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-26 07:26:50 +0000
committerRoy Marples <roy@marples.name>2008-09-26 07:26:50 +0000
commit9c9ad2f1e6d02ebc311521341848385aa499efa0 (patch)
treef69d5d6b7784f662dfabda8119c8b1c7cd2513fc /if-options.c
parent130d5f86b3957469197990e03b3280f5dedc6cad (diff)
downloaddhcpcd-9c9ad2f1e6d02ebc311521341848385aa499efa0.tar.xz
Fix -I '' to not send a client ID instead of a blank one, #116.
Diffstat (limited to 'if-options.c')
-rw-r--r--if-options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/if-options.c b/if-options.c
index 84200803..118ed3bf 100644
--- a/if-options.c
+++ b/if-options.c
@@ -179,7 +179,7 @@ parse_string_hwaddr(char *sbuf, ssize_t slen, const 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++;
}