Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243234
b: refs/heads/master
c: d50e7e3
h: refs/heads/master
v: v3
  • Loading branch information
Dan Rosenberg authored and David S. Miller committed Mar 28, 2011
1 parent 9583312 commit 2da527d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e433430a0ca9cc1b851a83ac3b305e955b64880a
refs/heads/master: d50e7e3604778bfc2dc40f440e0742dbae399d54
3 changes: 3 additions & 0 deletions trunk/net/irda/irnet/irnet_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ irnet_ctrl_write(irnet_socket * ap,
while(isspace(start[length - 1]))
length--;

DABORT(length < 5 || length > NICKNAME_MAX_LEN + 5,
-EINVAL, CTRL_ERROR, "Invalid nickname.\n");

/* Copy the name for later reuse */
memcpy(ap->rname, start + 5, length - 5);
ap->rname[length - 5] = '\0';
Expand Down

0 comments on commit 2da527d

Please sign in to comment.