Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276483
b: refs/heads/master
c: ddca8f3
h: refs/heads/master
i:
  276481: 805b36a
  276479: fb4d3be
v: v3
  • Loading branch information
Nicholas Bellinger committed Dec 6, 2011
1 parent 1fb1fcd commit 8f802f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c638830d040696ff2bae07785fd4277e7e3fe7c4
refs/heads/master: ddca8f3ed36c5d25363dab6762829868af09cb02
6 changes: 4 additions & 2 deletions trunk/drivers/target/iscsi/iscsi_target_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@

static int chap_string_to_hex(unsigned char *dst, unsigned char *src, int len)
{
int j = DIV_ROUND_UP(len, 2);
int j = DIV_ROUND_UP(len, 2), rc;

hex2bin(dst, src, j);
rc = hex2bin(dst, src, j);
if (rc < 0)
pr_debug("CHAP string contains non hex digit symbols\n");

dst[j] = '\0';
return j;
Expand Down

0 comments on commit 8f802f7

Please sign in to comment.