Skip to content

Commit 7443358

Browse files
committed
Clarify context step example
Signed-off-by: Jordan Borean <[email protected]>
1 parent 1f313cb commit 7443358

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: gssapi/sec_contexts.py

+2
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ def step(self, token=None):
481481
try:
482482
while not ctx.complete:
483483
output_token = ctx.step(input_token)
484+
if not output_token:
485+
break
484486
input_token = send_and_receive(output_token)
485487
except GSSError as e:
486488
handle_the_issue()

0 commit comments

Comments
 (0)