Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96541
b: refs/heads/master
c: 5dc474d
h: refs/heads/master
i:
  96539: d824e0e
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed May 12, 2008
1 parent 2d5fb5d commit 1fc925d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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: 4951704b4e23d71b99ac933d8e6993bc6225ac13
refs/heads/master: 5dc474d6b3ba19df7d491d4eabd9fb7a0c1c2423
13 changes: 10 additions & 3 deletions trunk/drivers/net/pppol2tp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1621,9 +1621,16 @@ static int pppol2tp_connect(struct socket *sock, struct sockaddr *uservaddr,
end:
release_sock(sk);

if (error != 0)
PRINTK(session ? session->debug : -1, PPPOL2TP_MSG_CONTROL, KERN_WARNING,
"%s: connect failed: %d\n", session->name, error);
if (error != 0) {
if (session)
PRINTK(session->debug,
PPPOL2TP_MSG_CONTROL, KERN_WARNING,
"%s: connect failed: %d\n",
session->name, error);
else
PRINTK(-1, PPPOL2TP_MSG_CONTROL, KERN_WARNING,
"connect failed: %d\n", error);
}

return error;
}
Expand Down

0 comments on commit 1fc925d

Please sign in to comment.