Skip to content

Commit

Permalink
fix ua length
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed May 1, 2021
1 parent 44184b2 commit 3951e25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=UA2F
PKG_VERSION:=3.1
PKG_VERSION:=3.2

PKG_RELEASE:=5
PKG_RELEASE:=6


PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
Expand Down
4 changes: 2 additions & 2 deletions src/ua2f.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ static int queue_cb(const struct nlmsghdr *nlh, void *data) {

debugflag++; //flag6

uaoffset = uapointer - tcppkpayload + 15;
uaoffset = uapointer - tcppkpayload + 14;
for (int i = 0; i < tcppklen - uaoffset - 4; ++i) {
if (*(uapointer + 15 + i) == '\r') {
if (*(uapointer + 14 + i) == '\r') {
ualength = i;
break;
}
Expand Down

0 comments on commit 3951e25

Please sign in to comment.