Skip to content

Commit

Permalink
fix: handle properly dhcp requests without a hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
hfreire committed Apr 12, 2017
1 parent e07c123 commit fa4d0b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/dhcprl.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,6 @@ void get_hostname(char *hostname, char *data, int data_len) {
void add_or_update_dhcp_request(time_t timestamp, char *mac_address, char *hostname) {
struct dhcp_request *request;

printf("%s\n", mac_address);

LIST_FOREACH(request, &dhcp_requests, requests) {
if (strcmp(request->mac_address, mac_address) == 0 && strcmp(request->hostname, hostname) == 0) {
request->timestamp = timestamp;
Expand Down

0 comments on commit fa4d0b7

Please sign in to comment.