Skip to content

Commit e336a9a

Browse files
committed
session_rpcserver: nil check on MacaroonRecipe
1 parent 459c7cb commit e336a9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

session_rpcserver.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ func (s *sessionRpcServer) resumeSession(sess *session.Session) error {
295295
// For custom session types, we use the caveats and permissions that
296296
// were persisted on session creation.
297297
case session.TypeMacaroonCustom:
298-
permissions = sess.MacaroonRecipe.Permissions
298+
if sess.MacaroonRecipe != nil {
299+
permissions = sess.MacaroonRecipe.Permissions
300+
}
299301

300302
// No other types are currently supported.
301303
default:

0 commit comments

Comments
 (0)