diff --git a/dongle.c b/dongle.c index 13e4134b12354338a7e54dff5ef638117ffb1af9..19951cee8462ba689ae174b21990cb259806b7d9 100644 --- a/dongle.c +++ b/dongle.c @@ -170,6 +170,7 @@ void free_device(struct device *dev) { if (!dev) return; + free(dev->ip); free(&(dev->usb)); } @@ -178,6 +179,7 @@ void free_usb(struct USB *usb) { if (!usb) return; + free(usb->product); free(usb->product_id); free(usb->vendor_id); diff --git a/dongle_pin.h b/dongle_pin.h index 8259165490fd8283fd54a1b6ee7d8338dce32264..77c2361310e77b860c845241c4df4c4626a5a2bc 100644 --- a/dongle_pin.h +++ b/dongle_pin.h @@ -2,5 +2,9 @@ #define PIN_H #include "common.h" -int expose_pin_object(struct ubus_context *ctx); +static int isdigits(const char *pin); +static int validate_puk_format(char *puk); +static int validate_pin_format(char *pin); +int pin_status(struct blob_buf *bb) +int check_response(struct json_object *response) #endif