Skip to content

Commit

Permalink
Fix remote_id parsing in option82_plugin (contributed by [email protected])
Browse files Browse the repository at this point in the history
  • Loading branch information
sem-hub committed Jun 19, 2013
1 parent fa03879 commit 6df4e97
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions HISTORY
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
2013-06-19:
4.7 version
* fix remote_id parsing in option82_plugin (contributed by [email protected])

2013-04-15:
4.6 version
* fix rps_limit converting it to per-interface basis (and removing mutex)

2012-12-03:
4.5 version
* destroy() in plugins for smooth shutdown.
Expand Down
2 changes: 1 addition & 1 deletion dhcprelya.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

#include "dhcprelya.h"

#define VERSION "4.6"
#define VERSION "4.7"

/* options */
/* globals (can check in modules) */
Expand Down
5 changes: 3 additions & 2 deletions option82_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,13 @@ option82_plugin_init(plugin_options_head_t *options_head)
/* is a string */
if (*p == '"') {
p++;
for (i = 0; *p != '"' && *p != '\0'; p++, i++)
rid[i] = *p;
for(rid_len=0; *p != '"' && *p != '\0' && rid_len<sizeof(rid); p++,rid_len++)
rid[rid_len] = *p;
if (*p != '"') {
logd(LOG_ERR, "option82_plugin: Syntex error in option value at line: %s", opts->option_line);
return 0;
}
rid[rid_len] = '\0';
} else if (strcasecmp(p, "0x") == 0) {
p += 2;
logd(LOG_ERR, "option82_plugin: hexadecimal is not supported yet at line: %s", opts->option_line);
Expand Down

0 comments on commit 6df4e97

Please sign in to comment.